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 / shridhar
//PMAP128A JOB ,'SORT SPLIT',
// MSGCLASS=Q,
// CLASS=D,TIME=0
//*
//STEP010 EXEC PGM=SORT
//SYSPRINT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SORTIN DD DSN=PMAP128.SORTIN,DISP=SHR
//SORTOF01 DD SYSOUT=*
//SORTOF02 DD SYSOUT=*
//SORTOF03 DD SYSOUT=*
//SORTOF04 DD SYSOUT=*
//SYSIN DD *
SORT FIELDS=COPY
OUTFIL FILES=(01,02,03,04),SPLIT
/*
/*
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
How can an in-stream dataset be terminated?
Explain the jcl exec statement?
What is the syntax of JCL statement?
what is DD statement is used in JCL?
what are JCLLIB and STEPLIB in JCL?
How would you understand error(execution phase)?
What is concatenating?
whats the diff bw the evaluate also and and?
what is the purpose of coding notify parameter in job statement?
What are hierarchy levels in jcl?
What is multithreading in jcl?
What is the difference between run mode and addressing mode?
Brief description of inline procedure of jcl.
Suppose I have a program in cobol name ”careerride” and want to execute the program by jcl. Specify the process?
//S10 EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //CON DD DSN=VAR.INPUT1,DISP=SHR // DD DSN=VAR.INPUT2,DISP=SHR //OUT DD DSN=VAR.OUTPUT,DISP=(NEW,CATLG,DELETE), // SPACE=(CYL,(5,5)),UNIT=SYSDA //TOOLIN DD * * Splice the needed data from the two VB files together SPLICE FROM(CON) TO(OUT) ON(5,5,CH) WITHALL - WITH(12,5) WITH(22,20) VLENMAX /*