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



i have a base gdg consisting of 12 versions like jan to dec. i need to concatante this gdg to anoth..

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

i have a base gdg consisting of 12 versions like jan to dec. i need to concatante this gdg to anoth..

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

i have a base gdg consisting of 12 versions like jan to dec. i need to concatante this gdg to anoth..

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

i have a base gdg consisting of 12 versions like jan to dec. i need to concatante this gdg to anoth..

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

Post New Answer

More JCL Interview Questions

List some valid operation codes in JCL

3 Answers  


Can a PROC CALL another PROC ? (in both Instream and Cataloged cases) ?

3 Answers   IBM,


Explain about LMPUT-

1 Answers  


What is the function of the steplib dd statement?

0 Answers  


do we need to mention the location of catalogued procedure for each it's call in a single job?

1 Answers  






What is notcat 2 - gs?

0 Answers  


I have 2 steps in my exec statement , in first step I am creating a gdg, and the output of this step is going into second step as a input, and this second step is abended , now how could i approach in this case.

5 Answers   Bank Of America,


how would you create a temporary dataset? And where will you use them?

0 Answers  


Is there any command to check wether the ps file is in sorted order?

4 Answers  


How different is the JCL executing a COBOL program? 1) if the program is using VB file as input. 2) if the program is using FB file as input.

1 Answers   HSBC,


I need exexution process for JCL programs

0 Answers  


What does S0C4 error mean?

8 Answers  


Categories