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
 

 

Copy a set of gdg generations

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
vinit_infy
Warnings : 1

New User


Joined: 07 Apr 2005
Posts: 56

PostPosted: Mon Jul 05, 2010 6:05 pm    Post subject: Copy a set of gdg generations
Reply with quote

Hi,

I have a scenerio where i have 50 generation of a tape file. I have to copy each generation to another gdg tape file using some outrec function.

For one generation i have my proc ready where i have hard coded the generation number. But for 50 generation is there any way which can help me in using just one generic proc? Otherwise i have to write 50 step for 50 generation.
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2429
Location: Netherlands, Amstelveen

PostPosted: Mon Jul 05, 2010 6:10 pm    Post subject:
Reply with quote

IDCAMS Repro for 50 input/output datasets.
It is some jcl/repro statements coding, but it keeps you
of the street.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 05, 2010 6:10 pm    Post subject:
Reply with quote

Write 50 steps for 50 generations.

To be honest here, you could have done that in not much more time than it took you to post.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2429
Location: Netherlands, Amstelveen

PostPosted: Mon Jul 05, 2010 6:12 pm    Post subject:
Reply with quote

I think the posted time stamp needs some seconds added, to make
clear who was first.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 05, 2010 6:16 pm    Post subject:
Reply with quote

I delayed my response to put the second line in.
Drat and double drat - I would have beaten you otherwise icon_lol.gif
Back to top
View user's profile Send private message
vinit_infy
Warnings : 1

New User


Joined: 07 Apr 2005
Posts: 56

PostPosted: Mon Jul 05, 2010 6:16 pm    Post subject:
Reply with quote

Ya i know i can just repeat 50 times in 5 seconds..but there is something called smart work...i was looking for that only..
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2429
Location: Netherlands, Amstelveen

PostPosted: Mon Jul 05, 2010 6:25 pm    Post subject:
Reply with quote

vinit_infy wrote:
Ya i know i can just repeat 50 times in 5 seconds..but there is something called smart work...i was looking for that only..


Faster than 5 seconds? I think thats smart enough.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Mon Jul 05, 2010 6:27 pm    Post subject:
Reply with quote

Define "Smart work"
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Jul 05, 2010 9:23 pm    Post subject:
Reply with quote

Hello,

Suggest you consider a 1-step PROCedure (cataloged or proc/pend inline) and then simply have 50 EXECs with a symbolic parameter (or multiple if needed).
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts HALDB data refresh/copy from producti... vineetanand2007 IMS DB/DC 1 Mon Jan 02, 2017 11:16 am
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm


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