I have a file in which I have 20 records. I want my first
record to go into file 1 and second record to go in second
file. I want to copy the alternate records like this in the
two output files. How can I do this using JCL?
Answer Posted / bala
we can add seqnum to each record in the file using SORT
command and copy then use INCLUDE & EXCLUDE COND of SORT
for this.
| Is This Answer Correct ? | 1 Yes | 3 No |
Post New Answer View All Answers
Differentiate between the joblib and the steplib statements?
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
Brief description of inline procedure of jcl.
What do you know about jcl?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
what is JCL?
What are steplib and joblib?
Is automatic restart possible in jcl?
What is concatenating?
What does a disposition of (new,catlg,keep) for a dsn mean?
Explain how can return codes be tested before execution of a job step?
How to pass the parameter in parm using linkage section ? (syntax)?
what JCL Procedures?
Explain the hierarchy levels in jcl?
How can the attributes of one sms dataset be copied to another dataset?