View previous topic :: View next topic
|
Author |
Message |
vinodkumar.rao
New User
Joined: 29 Nov 2006 Posts: 4 Location: Chennai
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|