Can I concatenate various datasets whose organization are
different from each other. Lets say I want to cancatenate a
PDS file, a PS file, a GDG file etc. Can You do that ??
If yes, how ? is there any separate Utility to do so ???
Answer Posted / ayan
Test this code
//MYJOB1 JOB
(,L3),'MRJTEST',MSGCLASS=X,NOTIFY=&SYSUID,CLASS=B
//*
//STEP01 EXEC
PGM=SORT
//SYSOUT DD
SYSOUT=*
//*
//* *** INPUT PRINT FILE
***
//SORTIN DD DSN=&SYSUID..TESTGDG
(0),DISP=SHR
// DD
DSN=&SYSUID..EMPYT,DISP=SHR
// DD DSN=&SYSUID..TESTPDS
(TEST1),DISP=SHR
//*
//* *** OUTPUT EXTRACT FILE
***
//SORTOUT DD DSN=&SYSUID..TESTGDG
(+1),
// DISP=
(NEW,CATLG,KEEP),
// UNIT=SYSDA,SPACE=(CYL,
(10,5)),
// DCB=
(DSORG=PS,RECFM=FB,LRECL=80)
//*
//SYSIN DD
*
SORT
FIELDS=COPY
/*
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
How is a type of file defined in the jcl that executes the cobol program?
What is the use of symbol // in jcl?
Explain how can the submitting users racf authority be overridden in a job stream?
What do you understand by the term notcat 2 – gs?
What do you understand by the term job time – out and how can you overcome that?
what happens in execution stage in job processing?
What does a disposition of (MOD,DELETE,DELETE) mean ?
which parameter is use to declare the name of dataset in dd statement?
How to do automated restart when a job abend?
What are the rules employed while naming the steps in a job?
What are the jcl procedures?
How jcl work to handle various input output file operations?
Which statement is used to identify the private libraries in job?
What are the utility programs in jcl?
Explain the function of //cntl statement?