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
what is the resolution for sb37 error
what operation is performed by job statement?
How is a type of file defined in the jcl that executes the cobol program?
List the different components of jcl statement?
How to read and write a single record into a file. I would like to use it to enter a single 8-character piece of information and use it to put it into a variable for processing in JCL. Thank you
what are the types of abends that occur on job failure? And explain the possible causes of these
What is one line to pass PARM from JCL to COBOL?
when can a job time-out occur? How to overcome that?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
Why include statement is used in a jcl?
1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat
Is automatic restart possible in jcl? If yes, how?
what is DD statement is used in JCL?
How to submit jcl through a cobol program?
How to submit a jcl from cics?