Hi,
Say I have 10 flat files and I want to copy all these 10
flat files to a GDG versions flat files (I have GDG base:
FDWS01.TEST.RESTORE) in one shot. Can we do that in one shot
using a JCL. May be by using IEBGENER. It's a bit urgent. So
anyone's fast rely would be appreciated.. Thanks in advance..
10 flat files
-----------------------------------
FDWS01.SUB.RESTORE1
FDWS01.SUB.RESTORE2
FDWS01.SUB.RESTORE3
;
;
FDWS01.SUB.RESTORE10
TO
GDG versions
-----------------------
FDWS01.TEST.RESTORE.G0001V00
FDWS01.TEST.RESTORE.G0002V00
FDWS01.TEST.RESTORE.G0003V00
;
;
FDWS01.TEST.RESTORE.G0010V00
Answer Posted / balmukund
Using below JCL we can achieve the above task.
//jobcard JOB.......
//STEP1 EXEC PGM=IDCAMS
//SYSPRINT DD SYSOUT=*
//INDD DD DSNAME=FDWS01.SUB.RESTORE1,DSIP=OLD
// DD DSNAME=FDWS01.SUB.RESTORE2,DSIP=OLD
// DD DSNAME=FDWS01.SUB.RESTORE3,DSIP=OLD
// DD DSNAME=FDWS01.SUB.RESTORE4,DSIP=OLD
......
......
......
// DD DSNAME=FDWS01.SUB.RESTORE10,DSIP=OLD
//OUTDD DD DSNAME=FDWS01.TEST.RESTORE(+1),DISP=NEW
//SYSIN DD *
REPRO INFILE (INDD) OUTFILE (OUTDD)
/*
Hope this will work with you. other wise let me known
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
what is the JCL statement consists of?
Explain in DD statement what is the use of DCB parameter?
when does a dataset go uncataloged?
Explain the function of //cntl statement?
When space is allocated for an output dataset, what units can be used?
Is condition checking possible in jcl? If yes, how?
Explain dd statement in jcl?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
List the different components of jcl statement?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
How does jcl act on code(if you take a cobol program)?
List the different jcl statements that are not permitted in the procedures?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
What is the motivation behind coding class parameter in job statement?
define cond parameter in jcl?