In one of intervie, my interviwer asked, I have a file
which contains 4 records I would like to split the 4
different outputs for each record how to do?
Answer Posted / rajesh
The following will also work ..
//SYSIN DD *
SORT FIELDS=COPY,
OUTFILE FNAMES=(OUTFILE1,OUTFILE2,OUTFILE3,OUTFILE4),SPLIT
/*
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
how can you check if a file is empty using jcl?
Where can program checkpoints be stored for use in a restart?
State the uses of syspring, sysin, sort fields, sum fields and dummy.
What is job control language?
what JCL Procedures?
Is there any command to check wether the ps file is in sorted order?
which utility is used a dummy utility?
What is the use of disp parameter?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
what happens in execution stage in job processing?
Explain the function of the steplib dd statement?
if the submitter of a job wants to inform another user about the job completion, how can it be done?
What dd statement is used to supply the name of a dataset?
what is the purpose of coding class parameter in job statement?
How can a jobs execution priority be modified?