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 / sachin
above answer is partially correct
use below syntax i have already performed this code
in our application.
//S1 EXEC PGM=SORT
//SORTIN DD DSN=INPUT FILE,DISP=SHR
//DD01 DD DSN =O/P1
//DD02 DD DSN =O/P2
//DD03 DD DSN =O/P3
//DD04 DD DSN =O/P4
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FNAMES=(DD01,DD02,DD03,DD04),SPLIT
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Suppose I have five jobs to do. But I want to hold one?
Can I send output of job to my remote device careerride123?
In job processing, what happens in conversion stage?
what is use of space parameter in dd statement?
How is the record format of an output dataset specified?
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) ?
which utility is used to sort a file in jcl?
What is the purpose of dd dummy statement?
what is the purpose of coding notify parameter in job statement?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
How to pass the parameter in parm using linkage section ? (syntax)?
Which dd parameters are required?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
Explain how can the submitting users racf authority be overridden in a job stream?
which parameter is used to check the syntax of a jcl without executing it?