View previous topic :: View next topic
|
Author |
Message |
Suresh S
New User
Joined: 06 Mar 2007 Posts: 2 Location: chennai
|
|
|
|
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 |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
David Robinson
Active User
Joined: 21 Dec 2011 Posts: 199 Location: UK
|
|
|
|
What job scheduler do you use? |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
I think what David is alluding to is that some schedulers will do this function for you automatically. |
|
Back to top |
|
|
daveporcelan
Active Member
Joined: 01 Dec 2006 Posts: 792 Location: Pennsylvania
|
|
|
|
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 |
|
|
Suresh S
New User
Joined: 06 Mar 2007 Posts: 2 Location: chennai
|
|
|
|
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 |
|
|
|