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

how to delete selective number of generations from one GDG?


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
seagull

New User


Joined: 28 May 2007
Posts: 24
Location: Dublin

PostPosted: Wed Aug 24, 2011 4:03 pm
Reply with quote

Your best option is to use a scheduler to prevent more generations being created while this job is processing.
Back to top
View user's profile Send private message
useit

Active User


Joined: 05 Oct 2006
Posts: 152

PostPosted: Wed Aug 24, 2011 4:04 pm
Reply with quote

hi,
escapa's solution worked for me.

Ø Use IDCAMS and list all generations

Ø Parse output to create TSO delete command

Ø Execute those commands

Regds,
use it
Back to top
View user's profile Send private message
useit

Active User


Joined: 05 Oct 2006
Posts: 152

PostPosted: Wed Aug 24, 2011 4:08 pm
Reply with quote

seagull,
there is no direct dependency b/w different runs of jobs.
it was a real challenge to properly place the mutual dependencies.

And in case we had gone ahead with the approach of placing mutual dependencies then, it would really have been a messy approach complicating our schedule

Regds,
useit
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Wed Aug 24, 2011 5:22 pm
Reply with quote

Quote:
i know reading the base would read All the generations. but there is a chances of some other generation getting created in between.(which i want to prcess in the next run only)



This is not true.

If this Job uses DISP=(OLD,DELETE,KEEP) on the GDG base and the 'other' Job has DISP=(NEW,CATLG,DELETE) on the +1, then it is not possible to create 'some other generation'.

The first Job in gets control of the entire structure, and the other job will get a waiting for datasets message.

No scheduling required, no listcats and deletes, just clean and simple jcl.

Why do I bother?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Wed Aug 24, 2011 9:19 pm
Reply with quote

Hi Dave,

Quote:
Why do I bother?
'Cause you can. . . icon_smile.gif

Sometimes we actually do get thru to folks who have made something much more difficult that it needs to be.
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 -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
Search our Forums:

Back to Top