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
 

 

Check if a dataset is available or migrated or not catloged

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Check if a dataset is available or migrated or not catloged
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

Moderator Team Head


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

PostPosted: Sat Apr 25, 2009 5:12 pm    Post subject: Reply to: Check if a dataset is available or migrated or not
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts LISTCAT on a dataset with symbolic pa... shreya19 JCL & VSAM 5 Fri Apr 07, 2017 5:43 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm


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