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

what is the resolution for sb37 error

7700


what operation is performed by job statement?

655


How is a type of file defined in the jcl that executes the cobol program?

709


List the different components of jcl statement?

687


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

603






what are the types of abends that occur on job failure? And explain the possible causes of these

1114


What is one line to pass PARM from JCL to COBOL?

587


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

753


When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?

930


Why include statement is used in a jcl?

688


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

7076


Is automatic restart possible in jcl? If yes, how?

655


what is DD statement is used in JCL?

679


How to submit jcl through a cobol program?

676


How to submit a jcl from cics?

658