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

Delete all datasets in JCL with DISP=NEW if they exist


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
niks_jude
Warnings : 1

Active User


Joined: 01 Dec 2006
Posts: 144
Location: Mumbai

PostPosted: Fri May 23, 2008 3:04 pm
Reply with quote

We do not have a utility like CA11RMS in our system to do such a thing.

Can I have a REXX code which deletes all datasets with DISP=NEW if they are alreay catalogued. This would save us from manually deleting all such datasets in every re-run.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri May 23, 2008 3:10 pm
Reply with quote

check the cleanup utility by Gilbert Saint Flour
file 183 of cbttape or..
search the net for "gilbert saint flour freeware" or
go there directly

review with Your support before using
Back to top
View user's profile Send private message
niks_jude
Warnings : 1

Active User


Joined: 01 Dec 2006
Posts: 144
Location: Mumbai

PostPosted: Fri May 23, 2008 4:33 pm
Reply with quote

We will not be able to use this assembler program as we are not allowed to use such free load modules. If I can get a REXX that would be great help.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri May 23, 2008 4:44 pm
Reply with quote

it' s not a object only thing...
the source is there and can reviewed and audited by Your support

even if You got somebody' s else REXX script the reviewing and auditing should be done anyway

since there is a working alternative do not expect much help icon_cool.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri May 23, 2008 4:58 pm
Reply with quote

Have you actually considered making your jobstream easily restartable.

Every job that I create has specific restart points where all datasets to be created until the next restart point are deleted via IDCAMS.

That way, if a job abends, the restart procedure is plain and simple.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri May 23, 2008 5:06 pm
Reply with quote

Hi expat !

I agree, but it looks like also procedure writing suffers from the poor understanding of the concept of fast restartable unit

1 - preprocessing ( dataset allocation / priming )
2 - processing
2a - abnormal condition handling ,reset
3 - postprocessing ( backups )

planned to minimize the abnormal condition handling and restart
without any job modification
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts How to delete a user's alias from the... JCL & VSAM 11
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts Delete file row if blanks in the firs... DFSORT/ICETOOL 5
Search our Forums:

Back to Top