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


Please Help Members By Posting Answers For Below Questions

define cond parameter in jcl?

779


what is “Cond= even” and “Cond=only”?

745


Give the syntax of job specifying jcl statement.

640


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

632


Explain the job statement in jcl?

653






What are the 2 types of parameters in dd statement?

654


what JCL Procedures?

703


Explain in DD statement what is the use of DCB parameter?

657


what are the statements that are not valid to be included in an include statement?

778


What are hierarchy levels in jcl?

960


by using cond parameter maximum 8 cond can be coded in single cond means ?explain

979


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

1933


which utility is used to sort a file in jcl?

750


Does jcl support automatic restart?

764


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?

835