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 / rookie
//**********************************************************
//STEP0011 EXEC PGM=SORT
//SORTIN DD DSN= <input file>,DISP=SHR
//SORTOFO1 DD DSN= <output file 1>,DISP=.....,
// SPACE=(....),
// DCB=....
//SORTOFO2 DD DSN= <output file 1>,DISP=.....,
// SPACE=(....),
// DCB=....
//SORTOFO3 DD DSN= <output file 1>,DISP=.....,
// SPACE=(....),
// DCB=....
//SORTOFO4 DD DSN= <output file 1>,DISP=.....,
// SPACE=(....),
// DCB=....
//*
//SYSIN DD *
OUTFIL FILES=(1,2,3,4),SPLITBY=1
/*
//
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the purpose of dd dummy statement?
is there any way to execute more than one proc in the same exec statement at the same time..?
What is timing concept in mainframe?
Explain how can the submitting users racf authority be overridden in a job stream?
what is use of disp parameter in dd statement?
What are the parameter we cannot use in procedure?
What is the difference between the positional and keyword parameters? Give examples.
How can unused space allocation be returned to the system when a dataset is closed?
what happens in execution stage in job processing?
Is their any limit for data sets?
Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You
Explain how can a stopped job be started again?
Does jcl support automatic restart?
How do you create a temporary dataset?
Are there any set of rules for the names of the steps used in a job?