Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IEBGENER(BACKUP 16 FILES) IN SINGLE STEP

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: IEBGENER(BACKUP 16 FILES) IN SINGLE STEP
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: 1452
Location: Chicago, IL

PostPosted: Mon Dec 18, 2006 11:32 am    Post subject: Re: IEBGENER(BACKUP 16 FILES) IN SINGLE STEP
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    Post subject: Re: IEBGENER(BACKUP 16 FILES) IN SINGLE STEP
Reply with quote

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

DFSORT Moderator


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

PostPosted: Mon Dec 18, 2006 9:38 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Data replication from multiple Db2 ta... kishpra DB2 1 Mon Mar 27, 2017 9:58 pm
No new posts Splitting of single report to seperat... abdulrafi TSO/ISPF 3 Mon Mar 27, 2017 3:59 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts To Merge mutliple records into a sing... anandgbe DFSORT/ICETOOL 6 Wed Feb 22, 2017 8:49 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us