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 / lu
your questions is 10 flat files copy into 1 output !!! or
10 flat file into 10 output !!!!
u create 10 steps (10 flat files into 10 output with GDG
//STEP1 EXEC PGM=IEBGENER
//sysut1 DD DSN=FDWS01.SUB.RESTORE1,DISP=old
//SYSUT2 DD DSN=FDWS01.TEST.RESTORE(+1),
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(20,10),RLSE),
// DCB=(MODEL.DCB,RECFM=FB,
// LRECL=80, BLKSIZE=800)
//*
//*
//STEP02 EXEC PGM=IEBGENER
//sysut1 DD DSN=FDWS01.SUB.RESTORE2,DISP=old
//SYSUT2 DD DSN=FDWS01.TEST.RESTORE(+2),
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,
// SPACE=(TRK,(20,10),RLSE),
// DCB=(MODEL.DCB,RECFM=FB,
// LRECL=80, BLKSIZE=800)
ok.....
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
define cond parameter in jcl?
what is “Cond= even” and “Cond=only”?
Give the syntax of job specifying jcl statement.
Explain how can values be passed from the job stream to an executable program?
Explain the job statement in jcl?
What are the 2 types of parameters in dd statement?
what JCL Procedures?
Explain in DD statement what is the use of DCB parameter?
what are the statements that are not valid to be included in an include statement?
What are hierarchy levels in jcl?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one
which utility is used to sort a file in jcl?
Does jcl support automatic restart?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?