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


Please Help Members By Posting Answers For Below Questions

Are there any set of rules for the names of the steps used in a job?

631


What is the function of the dd dcb keyword?

821


What is the function of //cntl statement?

828


What are hierarchy levels in jcl?

949


How can values be passed from the job stream to an executable program?

867






Explain how can an in-stream dataset be terminated?

696


What is concatenating?

633


what is DSN parameter and DISP parameter is used for?

672


I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?

2097


in a jcl, a large volume dataset is loaded to a table using bmcload in step1 and an image copy of the loaded table is taken using bmccopy in step2. Step2 abends because the image copy dataset cannot hold the volume of the table. How can this be rectified?

816


List the different components of jcl statement?

687


What is the use of symbol // in jcl?

918


What is the function of //jcllib statement?

802


What are the parameter we cannot use in procedure?

636


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

771