I have written a REXX exec with an ISPF dialog that will allow a user to
copy and rename a cataloged dataset to another volume.  The user will rename
the dataset, and has the option to  catalog, or not, the new dataset.  Also,
the user has the option to delete the existing cataloged-or-not dataset on
the target volume.  

 

I've been using LISTDSI on "SYS1.VVDS.V"volume_name to validate the
existence of the target volume since the user can type in the volume name.
However today, on the target volume, the SYS1.VVDS.Vvolume_name entry does
not exist, so LISTDSI fails with RC=16, REASON=0024 - dataset does not
exist.  

 

I'm a novice to this area, and my existing logic is probably pretty hackish,
at best.  

 

Two questions-

 

1)       Why might the SYS1.VVDS dataset not exist for the volume today?  

2)       What is a better approach to volume validation?  

 

Thanks, Todd

 

 


----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to