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
which parameter is use to declare the name of dataset in dd statement?
What do you understand by jcl?
Can an individual step be restricted from using all the jobs allowed cpu time?
Explain about LMFREE�free data set from its association with data ID
What dd statement is used to supply the name of a dataset?
Name the statement which can be used to send data to another mvs jes3 node?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
What is concatenating?
What is the function of a dd statement?
I had Records in file Like this Company Code IBM 2 IBM 1 IBM 4 WIPRO 3 WIPRO 2 WIPRO 9 TCS 4 TCS 6 TCS 3 i want the record of every company with highest code How can i do that?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
What happens if both JOBLIB & STEPLIB is specified ?
How can a stopped job be started again?
Is there any command to check wether the ps file is in sorted order?
What is the function of //jcllib statement?