Page 1 of 1

Checking dataset existence

PostPosted: Sat Aug 06, 2011 8:02 pm
by sanababu
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?

Re: Checking dataset existence

PostPosted: Sun Aug 07, 2011 4:47 am
by dick scherrer
Hello,

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.

Re: Checking dataset existence

PostPosted: Sun Aug 07, 2011 4:48 am
by MrSpock