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 / ksingla.vikas

IDCAMS might be helpful for same.

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of the dd avgrec keyword in sms datasets?

826


Explain the purpose of the dd keylen parameter?

661


Explain how can the attributes of one sms dataset be copied to another dataset?

695


Can I send output of job to my remote device careerride123?

658


What is catelog procedure and how many catelog procedure to use in one job?

7428






Explain the job statement in jcl?

636


What parameters can be used to limit the number of records written to a sysout dataset?

736


what is the difference between JES3 and JES2?

667


how to run batch program without jcl?

10054


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

1981


Explain how can the submitting users racf authority be overridden in a job stream?

666


How can return codes be tested before execution of a job step?

912


Can we call instream to catalog and catalog to instream?

673


Give the syntax of job specifying jcl statement.

628


what sort card you will use to copy the data from one dataset to another dataset?

717