Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Comparing 2 Files using Current time arunsoods SYNCSORT 9 Fri Sep 22, 2017 6:00 pm
No new posts it is possible output a SET value fro... Martylin JCL & VSAM 5 Fri Sep 22, 2017 7:08 am
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us