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 ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / user
//STEP1 EXEC PGM=IEBGENER
//SYSPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//SYSUT1 DD DSN=FINANCES.MONTHLY.G0001V00,DISP=SHR
DD DSN=FINANCES.MONTHLY.G0002V00,DISP=SHR
.....
DD DSN=FINANCES.MONTHLY.G0012V00,DISP=SHR
//SYSUT2 DD DSN=FINANCES.MONTHLY.NEW(+1),
// DISP=(,CATLG,DELETE),UNIT=DISK,
// SPACE=(CYL,(20,20),RLSE),
// DCB=*.SYSUT1
Is This Answer Correct ? | 3 Yes | 1 No |
Answer / guest
the version 1 will be for jan only
finances.monthly.G0001V00 - it is for Jan
finances.monthly.G0002V00 - it is for feb
...
...
finances.monthly.G0012V00 -it is for dec
Is This Answer Correct ? | 1 Yes | 1 No |
Answer / mdv
Technically, both answer #2 and #3 are correct. However,
answer #3 is better.
There are cases when the LRECL of some generations ( after
some change) are different from the others. In that case,
you cannot use the base.
You'll have to concatenate same LRECL files together and
proceed.
Is This Answer Correct ? | 0 Yes | 0 No |
what is use of dcb parameter in dd statement?
List the various advantages of using jcl language?
how you will the direct the data to spool using sysout option?
in production region 100 steps are running,but i need to run only step5 without changing code how can i do it?
What is jcl in mainframe, and how many types of jcl statements are there for a job?
Explain about CBL/PROCESS statement syntax
what are the symbolic parameters? why do we use symbolic parameters ?
2 Answers IBM, TCS, UST, Xansa,
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?
How can we see data in TEMPARARY DATA SET in JCL ?
What is the purpose of disp parameter?
In job processing, what happens in conversion stage?
How do you overcome this limitation ?