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 / shammi

But COPYBACK option can be used using File aid only...

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When output dataset space is required, what quantity categories are used?

948


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

765


Explain the function of the dd dcb keyword?

815


How to execute 2nd and 4th steps among 5 steps in jcl proc?

858


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?

744






Is condition checking possible in jcl?

828


how to compare two datasets without using superce because output is limited to 133 bytes

1617


what is DSN parameter and DISP parameter is used for?

764


Can we call instream to catalog and catalog to instream?

759


when can a job time-out occur? How to overcome that?

843


What are the utility programs in jcl?

728


Is their any limit for data sets?

786


Explain the purpose of dd * statement in jcl?

721


How can return codes be tested before execution of a job step?

1040


Can I share my data with other jobs? How?

757