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 / aarti sharma
Sort utility could be used for this with the OUTFIL option.
In your case you will have to mention 4 outfil op
OUTFIL RECORDS=(POS,LENGTH,COND,CONDVALUE) OUTIL=PS1
PS1 would be the outdataset need to define in DD stmt. In
ur case you need to have 4 outfil stmts mentioning 4
outfile record..
Not sure about the syntax..
| Is This Answer Correct ? | 10 Yes | 0 No |
Post New Answer View All Answers
How jcl is used for testing batch programs?
What are steplib and joblib? What for they are used?
What is the function of dd name parameter with a 2 part structure; audit.report?
what operation is performed by job statement?
In sms datasets, what is the function of the dd mgmtclas keyword?
in ways data can be passed to a COBOL program from JCL?
when can a job time-out occur? How to overcome that?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
Explain the function of job statement in jcl?
What is the purpose of dd * statement in jcl?
Is it possible to left uncode disp? If yes, how?
Explain dd statement in jcl?
What parameter of the job statement is used to limit the cpu time consumed by the job?
Explain how can values be passed from the job stream to an executable program?
In job processing, what happens in conversion stage?