Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Deleting the catalog files automatically during Job runtime

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Deleting the catalog files automatically during Job runtime
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: 585
Location: The Universe

PostPosted: Wed Apr 16, 2014 8:01 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10350
Location: italy

PostPosted: Wed Apr 16, 2014 10:30 am    Post subject: Reply to: Deleting the catalog files automatically during Jo
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
http://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: 182
Location: UK

PostPosted: Wed Apr 16, 2014 11:35 am    Post subject:
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    Post subject:
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: 687
Location: Pennsylvania

PostPosted: Wed Apr 16, 2014 8:39 pm    Post subject:
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    Post subject: Reply to: Deleting the catalog files automatically during Jo
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Split files upto certain limit based ... bubbu75 DFSORT/ICETOOL 5 Tue Nov 14, 2017 11:11 pm
No new posts Copy selected columns from 2 input fi... Poha Eater DFSORT/ICETOOL 3 Thu Nov 02, 2017 3:43 pm
No new posts Finding difference between two PS fil... Vignesh Sid SYNCSORT 5 Mon Oct 30, 2017 1:13 pm
No new posts NDM 300 files from mainframe to linux shreya19 All Other Mainframe Topics 2 Thu Oct 26, 2017 11:40 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us