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
Are there any set of rules for the names of the steps used in a job?
What is the function of the dd dcb keyword?
What is the function of //cntl statement?
What are hierarchy levels in jcl?
How can values be passed from the job stream to an executable program?
Explain how can an in-stream dataset be terminated?
What is concatenating?
what is DSN parameter and DISP parameter is used for?
I HAVE A VB BLOCK WHICH IS USED AS INPUT IN COBOL CONATINING SOME RECORDS CAN I CHANGE THE FILE FROM VB TO FB?
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?
List the different components of jcl statement?
What is the use of symbol // in jcl?
What is the function of //jcllib statement?
What are the parameter we cannot use in procedure?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?