i have a base gdg consisting of 12 versions like jan to dec. i
need to concatante this gdg to another gdg which have version 1
or to the base gdg itself can anyone give me the code pls ?
Answer Posted / sha
Assume, old gdg base is FINANCES.MONTHLY and new gdg base
is FINANCES.MONTHLY.NEW
The code to concatenate the old gdg 12 versions is
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT1 DD DSN=FINANCES.MONTHLY,DISP=SHR
//SYSUT2 DD DSN=FINANCES.MONTHLY.NEW(+1),
// DISP=(,CATLG,DELETE),UNIT=DISK,
// SPACE=(CYL,(20,20),RLSE),
// DCB=*.SYSUT1
Please correct me if I'm wrong...
| Is This Answer Correct ? | 10 Yes | 3 No |
Post New Answer View All Answers
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
How can the attributes of one sms dataset be copied to another dataset?
What statement can be used to send data to another mvs jes3 node?
What is the maximum length of a single line of jcl?
How can the disposition of sysout datasets be set for an entire jobstream?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
when can a job time-out occur? How to overcome that?
What is the function of the dd dcb keyword?
Explain the function of //jcllib statement?
How to override loadlib?
Name a few IBM utility programs, and explain its function.
what is the compile process of cobol program expalin with code
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
A dd statement consists of 4 fields. Name them?
what is use of dcb parameter in dd statement?