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
what is DSN parameter and DISP parameter is used for?
How to alter the parameters for the existing gdg?
Are there any set of rules for the names of the steps used in a job?
define cond parameter in jcl?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
What are s0c1, s0c4, s0c5, s0c7 and socb?
List the various advantages of using jcl language?
What is the use of symbol // in jcl?
How to find the UNIT and VOLUME of a (a) KEPT (b) UNCATALOGED and (c) CATALOGED dataset - using (i) JCL and using (ii) ISPF ?
Explain the function of dd name parameter with a 2 part structure; audit.report?
Can an individual step be restricted from using all the jobs allowed cpu time?
What is the purpose of dd dummy statement?
Which dd parameters are required?
How can the submitting users racf authority be overridden in a job stream?
what is use of space parameter in dd statement?