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
 

 

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 User


Joined: 30 Nov 2013
Posts: 461
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: 10202
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: 175
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: 1238
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: 645
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 High CPU consumption Job using IAM fi... aswinir JCL & VSAM 8 Thu Dec 01, 2016 8:28 pm
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
No new posts Adding records from two files into on... shiitiizz SYNCSORT 4 Mon Sep 19, 2016 8:41 pm
No new posts Icetool or Joinkeys example to compar... ishant chauhan DFSORT/ICETOOL 21 Sat Aug 20, 2016 2:40 am


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