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
which utility is used to sort a file in jcl?
What is the significance of addrspc parameter in exec statement?
Can anybody tell what is tool used to generate the list of PROCS used in JCL to generate a PROCTREE
what is JCL?
How to submit a jcl from cics?
What is notcat 2 - gs?
What is the function of the dd mgmtclas keyword in sms datasets?
When output dataset space is required, what quantity categories are used?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
What do you understand by the term job time – out and how can you overcome that?
What is the function of dd name parameter with a 2 part structure; audit.report?
Does jcl support automatic restart?
Is it possible to code instream data in a PROC?
What is the purpose of dd * statement in jcl?
Must tape dataset definitions include vol=ser specifications?