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
Which statement is used to identify the private libraries in job?
How can the disposition of sysout datasets be set for an entire jobstream?
which utility is used to sort a file in jcl?
Give the syntax of job specifying jcl statement.
Explain the function of a dd statement?
What is condition checking in jcl? Is this possible?
Explain how can the attributes of one sms dataset be copied to another dataset?
Is their any limit for data sets?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
Explain how can values be passed from the job stream to an executable program?
What is the difference between the positional and keyword parameters? Give examples.
What are the 4 fields in dd statement?
what is “Cond= even” and “Cond=only”?
how JCL works?
what is the use of IEBGENER utility?