IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IEBGENER(BACKUP 16 FILES) IN SINGLE STEP


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
morpheus007

New User


Joined: 27 Dec 2005
Posts: 58

PostPosted: Mon Dec 18, 2006 10:07 am
Reply with quote

I have a requirement to backup 16 different files to their corresponding 16 different GDG's.I want to do this in a single step.
Kindly suggest if we can do this in one step with IEBGENER or maybe one IDCAMS step(REPRO).Ideally I would want to try with IEBGENER.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Mon Dec 18, 2006 11:32 am
Reply with quote

Something like this should work with IDCAMS & REPRO... You might need some syntax corrections here, as I didnt test it....
Code:
//S010    EXEC PGM=IDCAMS                         
//SYSPRINT DD SYSOUT=*               
//INDD1    DD DSN=INPUT.DSN1,DISP=SHR         
//INDD2    DD DSN=INPUT.DSN2,DISP=SHR         
::
::
//INDD16   DD DSN=INPUT.DSN16,DISP=SHR         
//OUTDD1   DD DSN=OUTPUT.DSN1(+01),DISP=(,CATLG,DELETE)
//OUTDD2   DD DSN=OUTPUT.DSN2(+01),DISP=(,CATLG,DELETE) 
::
::
//OUTDD16   DD DSN=OUTPUT.DSN16(+01),DISP=(,CATLG,DELETE) 
//SYSIN    DD *                                     
REPRO INFILE(INDD1) OUTFILE(OUTDD1)               
REPRO INFILE(INDD2) OUTFILE(OUTDD2)               
::
::
REPRO INFILE(INDD16) OUTFILE(OUTDD16)               
/*
Back to top
View user's profile Send private message
morpheus007

New User


Joined: 27 Dec 2005
Posts: 58

PostPosted: Mon Dec 18, 2006 1:05 pm
Reply with quote

Thanks for the quick response.This works.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Dec 18, 2006 9:38 pm
Reply with quote

You might find that this DFSORT/ICETOOL solution is more efficient than the IDCAMS solution:

Code:

//S1    EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//INDD1    DD DSN=INPUT.DSN1,DISP=SHR
//INDD2    DD DSN=INPUT.DSN2,DISP=SHR
...
//INDD16   DD DSN=INPUT.DSN16,DISP=SHR
//OUTDD1   DD DSN=OUTPUT.DSN1(+01),DISP=(,CATLG,DELETE)
//OUTDD2   DD DSN=OUTPUT.DSN2(+01),DISP=(,CATLG,DELETE)
...
//OUTDD16   DD DSN=OUTPUT.DSN16(+01),DISP=(,CATLG,DELETE)
//TOOLIN   DD *
COPY FROM(INDD1) TO(OUTDD1)
COPY FROM(INDD2) TO(OUTDD2)
...
COPY FROM(INDD16) TO(OUTDD16)
/*
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
Search our Forums:

Back to Top