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 / ajay
You can do through DF SORT .
See the below Example.
OUTFIL FNAMES=OUTDD1,INCLUDE=(POS,LENGTH,COND,CONDVALUE)
OUTFIL FNAMES=OUTDD2,INCLUDE=(POS,LENGTH,COND,CONDVALUE)
OUTFIL FNAMES=OUTDD3,INCLUDE=(POS,LENGTH,COND,CONDVALUE)
Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
How to code these statements in JCL: CLEANUP INITIAL(NO) RESTART(NO) DYNALLOC(NO) job definition..?
when does a dataset go uncataloged?
Explain dfsort utility?
List the different components of jcl statement?
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
What are hierarchy levels in jcl?
What is the function of dd name parameter with a 2 part structure; audit.report?
What are the jcl procedures?
what operation is performed by job statement?
what is DD statement is used in JCL?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
how can a gdg base be created in a jcl. What is the difference between empty and scratch parameter while defining/altering gdg base?
What do you understand by the terms: joblib and steplib?
How can a jobs execution priority be modified?
Explain the jcl exec statement?