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 / sanju
use sort card:
//SYSIN DD *
COPYBACK OUT=50
/*
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
How does jcl specify the job to the operating system?
Which dd parameters are required?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
What are s0c1, s0c4, s0c5, s0c7 and socb?
Is their any limit for data sets?
What are the parameters that are used in creating a gdg?
What does a disposition of (new,catlg,keep) for a dsn mean?
How can an in-stream dataset be terminated?
Which statement is used to identify the private libraries in job?
In job processing, what happens in conversion stage?
what is the use of IEBGENER utility?
Explain the function of a dd statement?
how JCL works?
can any one plzzzzzz tell the jcl code for creating ps using idcams
What is the purpose of the dd keylen parameter?