Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8166
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
No new posts Updating the Trailer count in variabl... satheshbabur DFSORT/ICETOOL 6 Wed Aug 30, 2017 9:49 pm
No new posts Mainframe dataset split purushottam DFSORT/ICETOOL 13 Tue Aug 29, 2017 12:28 pm
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us