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

Which utility for checking the NOT CATLG 2 on a tape dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vinodkumar.rao

New User


Joined: 29 Nov 2006
Posts: 4
Location: Chennai

PostPosted: Wed Jan 03, 2007 8:16 pm
Reply with quote

I have a tape dataset that is created in a job. When i rerun the job, i want to have a step to check the not catlg 2 on this dataset. Which utility can be used to have this? I used IEFBR14, but this did not work.
Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 03, 2007 9:25 pm
Reply with quote

Hello,

Suggest you modify your JCL and make sure that there is no entry cataloged prior to creating the data set (rather than trying to detect it after the NOT CATLG 2 has already occurred).

Something to think about is why would you want to run a job creating a dataset that is already created? If you need multiple versions of the file, you might consider defining it as a generation data set (GDG).

If you'd like to make sure the data set is not cataloged prior to creating it you CAN do that with IEFBR14 - just make sure that you specify deferred mounting so an actual mount will not be issued - it will allocate a tape drive, but no mount will called for). You could also uncatalog the dsn using IDCAMS - which may be preferable.
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 FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts REASON 00D70014 in load utility DB2 6
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
Search our Forums:

Back to Top