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


Please Help Members By Posting Answers For Below Questions

what are the statements that are not valid to be included in an include statement?

776


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

614


what is JCL?

698


what is use of dcb parameter in dd statement?

775


Does jcl support automatic restart?

761






How can the attributes of one sms dataset be copied to another dataset?

859


Explain the function of dd disp parameter?

595


Name what parameter directs the output of the job log dataset?

563


Is automatic restart possible in jcl?

742


What do you understand by the term job time – out and how can you overcome that?

606


Is condition checking possible in jcl? If yes, how?

737


what JCL Procedures?

701


what is the compile process of cobol program expalin with code

2002


What are s0c1, s0c4, s0c5, s0c7 and socb?

706


How gdg are concatenated?

672