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

Deleting the catalog files automatically during Job runtime


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Suresh S

New User


Joined: 06 Mar 2007
Posts: 2
Location: chennai

PostPosted: Wed Apr 16, 2014 7:05 am
Reply with quote

Hello Friends,

Looking for Program/utility/code, which will be executed as first step in a job to identify and delete the necessary cataloged files during runtime and therefore to avoid JCL errors.




Kind Note: I have not found any posting related to topic. Hence Posting this. If there is any (please share the links), Sorry for the inconvenience.
Back to top
View user's profile Send private message
steve-myers

Active Member


Joined: 30 Nov 2013
Posts: 917
Location: The Universe

PostPosted: Wed Apr 16, 2014 8:01 am
Reply with quote

I don't know anything that is automatic; there are too many variations.

Yes, in theory one could find the current job's JCT in SWA, then skip down through the SCTs and SIOTs that correspond to the job's JCL, but there are ways to define data sets outside of JCL that no search of this nature would reveal.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Apr 16, 2014 10:30 am
Reply with quote

look at Gilbert Saint Flour (RIP) CLEANUP

You can find it on
file 183 of cbttape

or..
search the net for "gilbert saint flour freeware"

or
go there directly
gsf-soft.com/Freeware/

review with Your support before using
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Wed Apr 16, 2014 11:35 am
Reply with quote

What job scheduler do you use?
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Apr 16, 2014 8:02 pm
Reply with quote

I think what David is alluding to is that some schedulers will do this function for you automatically.
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Wed Apr 16, 2014 8:39 pm
Reply with quote

At our shop, we have SMS re-catalog existing files that are DISP=NEW automatically. thus removing the JCL error situation.

Works great, no fuss, no muss.
Back to top
View user's profile Send private message
Suresh S

New User


Joined: 06 Mar 2007
Posts: 2
Location: chennai

PostPosted: Thu Apr 17, 2014 4:52 am
Reply with quote

Thank you so much for all your fast response and time :-)

Below information is from FILE183.PDS <<http://gsf-soft.com/Freeware/>>.

CLEANUP Assembler program. Automatically searches the MVS
catalog for non-GDG data sets that will be created
in subsequent steps of your job and deletes them.
HSM-migrated data sets are deleted with HDELETE.

//MYJOB JOB acct#
//*
//CLEANUP EXEC PGM=CLEANUP
//*
//STEP1 EXEC PGM=MYPROG1
//OUTDD DD DSN=MY.FILE1,DISP=(,CATLG)
//STEP2 EXEC PGM=MYPROG2
//OUTDD DD DSN=MY.FILE2,DISP=(,CATLG)

Can also be executed as the LAST step of a job to
delete non-GDG data sets that were created during
job execution.
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Joinkeys - 5 output files DFSORT/ICETOOL 7
No new posts Deleting a Tape file JCL & VSAM 14
Search our Forums:

Back to Top