View previous topic :: View next topic
|
Author |
Message |
Pradeep Thangapandy
New User
Joined: 22 Feb 2008 Posts: 12 Location: United Kingdom
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I know that LISTDSI has a RECALL/NORECALL option. |
|
Back to top |
|
|
Pradeep Thangapandy
New User
Joined: 22 Feb 2008 Posts: 12 Location: United Kingdom
|
|
|
|
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 |
|
|
|