Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Need to check existance of dataset

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need to check existance of dataset
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    Post subject:
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    Post subject: Reply to: Need to check existance of dataset
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: 7996
Location: Bellevue, IA

PostPosted: Wed Mar 17, 2010 7:59 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Want to pull the job log into a Mainf... Jishu Mukherjee Compuware & Other Tools 9 Tue Mar 21, 2017 4:48 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts JCL to get submitted once dataset has... vinu78 JCL & VSAM 17 Thu Feb 16, 2017 7:32 am
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us