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

How would you understand error(execution phase)?

721


How to alter the parameters for the existing gdg?

799


Name a few IBM utility programs, and explain its function.

4538


How dummy is used in jcl?

738


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

765






What is the function of the steplib dd statement?

824


Explain the function of //cntl statement?

747


What is concatenating?

717


which parameter is used to check the syntax of a jcl without executing it?

903


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

797


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' ?

1663


what is DSN parameter and DISP parameter is used for?

764


what is the JCL statement consists of?

790


List the different jcl statements that are not permitted in the procedures?

723


what JCL Procedures?

800