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

Check if a dataset is available or migrated or not catloged


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Pradeep Thangapandy

New User


Joined: 22 Feb 2008
Posts: 12
Location: United Kingdom

PostPosted: Sat Apr 25, 2009 2:01 pm
Reply with quote

Hi, When i use sysdsn to check if a migrated dataset is catloged or not the program waits till the migrated dataset is recalled. Is there any alternate way i can use to check if dataset is available or migrated or not catloged without recal of migrated dataset to catlog?
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Apr 25, 2009 5:12 pm
Reply with quote

I know that LISTDSI has a RECALL/NORECALL option.
Back to top
View user's profile Send private message
Pradeep Thangapandy

New User


Joined: 22 Feb 2008
Posts: 12
Location: United Kingdom

PostPosted: Thu Apr 30, 2009 12:31 pm
Reply with quote

Thanks you very much this option has worked for me.

Code
Code:
DSN1 = "'<Dataset to be checked>'  NORECALL"     
X = LISTDSI(DSN1)                                 
SAY 'RC='X                                             
SAY 'Reason code ='SYSREASON                                 
SAY 'Reason desc1 ='SYSMSGLVL1                               
SAY 'Reason Desc2'SYSMSGLVL2                               


When dataset in catloged RC and reason code will be zero.
When dataset is migrated RC will be 16 and Reason code will hold 0009 and Detailed description 2 will hold "IKJ58409I HSM MIGRATED THE DATA SET. NORECALL PREVENTS RETRIEVAL."
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 -> CLIST & REXX

 


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