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 / bjoern
//REPRO EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//IN DD DISP=OLD,DSN=IN
//OUT1 DD DISP=OLD,DSN=OUT1
//OUT2 DD DISP=OLD,DSN=OUT2
//OUT3 DD DISP=OLD,DSN=OUT3
//OUT4 DD DISP=OLD,DSN=OUT4
//SYSIN DD *
REPRO IFILE(IN) OFILE(OUT1) COUNT(1)
REPRO IFILE(IN) OFILE(OUT2) SKIP(1) COUNT(1)
REPRO IFILE(IN) OFILE(OUT3) SKIP(2) COUNT(1)
REPRO IFILE(IN) OFILE(OUT4) SKIP(3)
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
can any one plzzzzzz tell the jcl code for creating ps using idcams
Explain dd statement in jcl?
What is the difference between the positional and keyword parameters? Give examples.
how to do automated restart when a job abends?
How can an in-stream dataset be terminated?
how to compare two datasets without using superce because output is limited to 133 bytes
Name a few IBM utility programs, and explain its function.
Is there any command to check wether the ps file is in sorted order?
whats the diff bw the evaluate also and and?
What are the parameter we cannot use in procedure? How many instream we can write in single jcl?
What is timing concept in mainframe?
how do you code a null statement?
what operation is performed by job statement?
what is use of dcb parameter in dd statement?
What are the utility programs in jcl?