Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

I have a sequential file in which there are 50 records. Now
I want to copy all the 50 records in the reverse order into
a new file? The last record in the original file should be
the first record in the new file. How can I do it?

Answer Posted / sanju

use sort card:
//SYSIN DD *
COPYBACK OUT=50
/*

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to run cobol program using jcl?

1228


What is the format of comment statement?

1215


Explain how can the disposition of sysout datasets be set for an entire jobstream?

1083


What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?

1100


Are there any set of rules for the names of the steps used in a job? What are they?

1073


How would you understand error(execution phase)?

1252


what is DSN parameter and DISP parameter is used for?

1149


What do you understand by the term notcat 2 – gs?

1241


Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed

2564


What statement can be used to send data to another mvs jes3 node?

1642


How dummy is used in jcl?

1147


Matching Logic in Jcl not in cobol.Could any one please answer this question

4154


How jcl work to handle various input output file operations?

1167


How does jcl act on a cobol code?

1182


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

1258