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

Need to check existance of dataset


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Wed Mar 17, 2010 7:39 pm
Reply with quote

Hi,

we have few jobs in our system which are dataset trigger i.e when they receive datset job is triggered. sometimes what happens is dataset is loaded into our system and job gets trigerred and is send to queue for processsing. But due to some reason user who sends the file finds something wrong and they remove those files from our system. what it means is that now at this moment there is no dataset and the job which is in our process queue now will not find dataset and will fail. I want to check its existance for i/p file and if it is not present we can do further processing for subsequent steps. The files sent dynamically.

E.g
Job is F9343PA0 and i/p file for this is
B9331.FTP.PS5106.BHM.U.D031710.T1001

Node D031710.T1001 are dynamic in nature

Regards,
Rupesh Gupta
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1249
Location: Richfield, MN, USA

PostPosted: Wed Mar 17, 2010 7:50 pm
Reply with quote

Discussed many times. Have you tried the Search facility here?
Back to top
View user's profile Send private message
rupesh gullu

New User


Joined: 12 Dec 2008
Posts: 96
Location: Gurgaon

PostPosted: Wed Mar 17, 2010 7:55 pm
Reply with quote

Terry,

I searched but could not get answer what i am looking for. Most of them are uisng Liscat option. but i am not sure if it will work for dynamic files.

regards,
rupesh
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Mar 17, 2010 7:59 pm
Reply with quote

LISTCAT LEVEL will work as long as you don't try to get down to the dynamic part of the file name. This is assuming, of course, that you've got one job with the LISTCAT to be analyzed and you're submitting from that job the actual job to do the work -- since you cannot do this all in one job.
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 SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts Allocated cylinders of a dataset DB2 12
Search our Forums:

Back to Top