Answer Posted / himanshu
Using SORT utility we can split the file. Sort card will be
as:
//SYSIN DD *
SORT FIELDS=COPY
OUTFILE FNAMES=(SORTOUT1,SORTOUT2,SORTOUT3),SPLIT
/*
If there are 10 records in input and these have to be split
across three files SORTOUT1, SORTOUT2 and SORTOUT3
respectively. After running the Job using this sort card,
record1 would be stored in SORTOUT1, record2 in SORTOUT2,
record3 in SORTOUT3, record4 in SORTOUT1 and so on.
| Is This Answer Correct ? | 18 Yes | 0 No |
Post New Answer View All Answers
What does a disposition of (MOD,DELETE,DELETE) mean ?
What is multithreading in jcl?
How to submit jcl through a cobol program?
What is job control language?
what is use of dcb parameter in dd statement?
What is one line to pass PARM from JCL to COBOL?
how you will the direct the data to spool using sysout option?
Explain the hierarchy levels in jcl?
How does the jcl specify the job to os?
Suppose I have five jobs to do. But I want to hold one?
What are the parameters that are used in creating a gdg?
what is the difference between JES3 and JES2?
write a jcl to execute a job by 7:00 am on jan 20,1986?
What are the 2 types of parameters in dd statement?
Explain the jcl exec statement?