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 to run cobol program using jcl?
What is the format of comment statement?
Explain how can the disposition of sysout datasets be set for an entire jobstream?
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?
Are there any set of rules for the names of the steps used in a job? What are they?
How would you understand error(execution phase)?
what is DSN parameter and DISP parameter is used for?
What do you understand by the term notcat 2 – gs?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
What statement can be used to send data to another mvs jes3 node?
How dummy is used in jcl?
Matching Logic in Jcl not in cobol.Could any one please answer this question
How jcl work to handle various input output file operations?
How does jcl act on a cobol code?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?