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
Explain the job statement in jcl?
What is the purpose of dd?
What is notcat 2 - gs?
Explain the hierarchy levels in jcl?
How do you create a temporary dataset?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
List the different jcl statements that are not permitted in the procedures?
Explain about LMQUERY�give a dialog information about a data set
Matching Logic in Jcl not in cobol.Could any one please answer this question
How to run cobol program using jcl?
what sort card you will use to copy the data from one dataset to another dataset?
What is jcl in mainframe?
Explain the function of the dd dcb keyword?
which parameter is use to declare the name of dataset in dd statement?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?