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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 15 Thu Dec 01, 2016 8:28 pm
No new posts IMS Database backup info ashek15 IMS DB/DC 14 Wed Nov 16, 2016 5:29 am
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm


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