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 would you understand error(execution phase)?
How to alter the parameters for the existing gdg?
Name a few IBM utility programs, and explain its function.
How dummy is used in jcl?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
What is the function of the steplib dd statement?
Explain the function of //cntl statement?
What is concatenating?
which parameter is used to check the syntax of a jcl without executing it?
What are s0c1, s0c4, s0c5, s0c7 and socb?
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
what is DSN parameter and DISP parameter is used for?
what is the JCL statement consists of?
List the different jcl statements that are not permitted in the procedures?
what JCL Procedures?