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
what are the statements that are not valid to be included in an include statement?
Are there any set of rules for the names of the steps used in a job? What are they?
what is JCL?
what is use of dcb parameter in dd statement?
Does jcl support automatic restart?
How can the attributes of one sms dataset be copied to another dataset?
Explain the function of dd disp parameter?
Name what parameter directs the output of the job log dataset?
Is automatic restart possible in jcl?
What do you understand by the term job time – out and how can you overcome that?
Is condition checking possible in jcl? If yes, how?
what JCL Procedures?
what is the compile process of cobol program expalin with code
What are s0c1, s0c4, s0c5, s0c7 and socb?
How gdg are concatenated?