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: 8121
Location: East Dubuque, Illinois, USA

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 Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts Browse dataset cvnlynn CLIST & REXX 4 Tue Jul 18, 2017 3:52 am
No new posts Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts To find out size allocated to a seque... ashek15 JCL & VSAM 15 Thu Apr 27, 2017 9:42 am


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