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

What is the job entry system used in your project? based on what criteria the sequence of jobs are picked if priority is not mentioned in the job card?

0 Answers  


How does jcl act on a cobol code?

0 Answers  


What is GDG?

1 Answers  


Explain how can the disposition of sysout datasets be set for an entire jobstream?

0 Answers  


Explain about RECORDING MODE Clause

1 Answers  






What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

0 Answers   IBM,


How to identify in JCL that an input file is empty without reading it?

4 Answers   L&T,


How is the keyword DUMMY used in JCL?

4 Answers  


. What is the difference between the following statements : I) step#1 exec PGM=accpay ii) step#1 exec tbalance

1 Answers  


describe the job statement, its meaning,syntax and significant keywords?

1 Answers  


How can i execute 5th step without executing first 4 steps?

4 Answers  


i have 10,000 records in one input file.i want to sort 1 to 5000 records in one outputfile and remaining records sort in another output file write the syntax for this?

4 Answers   DELL,


Categories