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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Delete all datasets in JCL with DISP=NEW if they exist
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri May 23, 2008 3:10 pm    Post subject: Reply to: Delete all datasets in JCL with DISP=NEW if they e
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri May 23, 2008 4:44 pm    Post subject: Reply to: Delete all datasets in JCL with DISP=NEW if they e
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: 8593
Location: Back in jolly old England

PostPosted: Fri May 23, 2008 4:58 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri May 23, 2008 5:06 pm    Post subject: Reply to: Delete all datasets in JCL with DISP=NEW if they e
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm


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