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 / avinash n
The file could be sorted in the descending order.
Synatx:
SORT FIELDS=(1:Y,CH,D)
where Y = record length.
The output would be in the reverse order!
| Is This Answer Correct ? | 0 Yes | 13 No |
Post New Answer View All Answers
how to compare two datasets without using superce because output is limited to 133 bytes
Describe the various parameters utilized in the creation of a gdg?
What is jcl in mainframe?
Name a few IBM utility programs, and explain its function.
write a jcl to execute a job by 7:00 am on jan 20,1986?
what are the types of abends that occur on job failure? And explain the possible causes of these
What is the function of the dd dcb keyword?
what is the difference between JES3 and JES2?
have in 100 records in a file i want to read first 3 records and skip next 3 records and agan i want to read 3 records and again i want to skip 3 records... run a loop from record one to 10 evaluate i/3 if comes even then skip else write to output file
Can I share my data with other jobs? How?
How can the submitting users racf authority be overridden in a job stream?
In sms datasets, what is the function of the dd mgmtclas keyword?
I have mainpgm(abc) this is the only cobol pgm(non-db2).And this pgm calling subpgm name "acd" this also only cobol(non- Db)and this pgm calling some other subpgm this pgm has cobol-db2 pgm. 1) IF you calling static mode how to run and how to compile? 2) IF you calling dynamic mode how to run and how to compile? plz suggestion me.
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?
What do you understand by the terms: joblib and steplib?