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
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
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
what are the various stages of job processing?
Which statement is used to identify the private libraries in job?
what is the resolution for sb37 error
How can unused space allocation be returned to the system when a dataset is closed?
in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?
Explain about ISPF/TSO Commands
What does a disposition of (MOD,DELETE,DELETE) mean ?
Explain the hierarchy levels in jcl?
Explain how can values be passed from the job stream to an executable program?
How to pass the parameter in parm using linkage section ? (syntax)?
what happens in execution stage in job processing?
What is NOTCAT ?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?