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
Mention the types of job control statements?
How gdg are concatenated?
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
how you can access an uncataloged dataset in a JCL?
How do you create a temporary dataset?
How do you overcome this limitation ?
What is Cataloged Procedures?
Explain how can values be passed from the job stream to an executable program?
What are the parameter we cannot use in procedure?
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
Give the syntax of job specifying jcl statement.
Explain the function of a dd statement?
What is the function of //cntl statement?
What does a disposition of (MOD,DELETE,DELETE) mean ?
List the different components of jcl statement?