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
what is the purpose of coding class parameter in job statement?
Can an individual step be restricted from using all the jobs allowed cpu time?
what is the use of JCL?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
How dummy is used in jcl?
how can the same proc be re-used and called by many jobs?
In sms datasets, what is the function of the dd mgmtclas keyword?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
Explain about ISPF/TSO Commands
How do you create a temporary dataset?
what are JCLLIB and STEPLIB in JCL?
What are the parameters that are used in creating a gdg?
For what purpose steplib and joblib are used ?
Explain the function of //jcllib statement?
Name the parameters which can be used to limit the number of records written to a sysout dataset?