Checking dataset existence

JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Checking dataset existence

Postby sanababu » Sat Aug 06, 2011 8:02 pm

Suppose my jcl contain a no of a dataset which are related to one another i.e one dataset output is input to another.How to know that whether a dataset is exit or not in the jcl?
Posts: 4
Joined: Wed Jul 13, 2011 6:54 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Checking dataset existence

Postby dick scherrer » Sun Aug 07, 2011 4:47 am


Your topic has been relocated. . . And the subject changed to something more meaningful than JCL. . .

Your process needs to make sure the data set(s) do exist or the process needs to check to see if they exist. JCL cannot check if a dataset exists - referring to a dataset that does not exist in the DSN will cause the job to terminate.

Our processes never check if sopme dataset exists - the processes make sure all is as it should be.
Hope this helps,
User avatar
dick scherrer
Global moderator
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Checking dataset existence

Postby MrSpock » Sun Aug 07, 2011 4:48 am

User avatar
Global moderator
Posts: 807
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Return to JCL


  • Related topics
    Last post