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
 
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: 4650
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 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