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 override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
What is concatenating?
What are the parameters that are used in creating a gdg?
What is timing concept in mainframe?
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
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 ?
what are the types of abends that occur on job failure? And explain the possible causes of these
Explain in DD statement what is the use of DCB parameter?
What is the function of //cntl statement?
Are there any set of rules for the names of the steps used in a job? What are they?
Suppose I have five jobs to do. But I want to hold one?
In job processing, what happens in execution stage?
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?
What are steplib and joblib?
Is it possible to define dd statements as you want?