While refreshing from production to test we need backup tape of production.
How do you confirm that it is still on the rack or already valuted out:
Here is the command you need to fire on console:
/F SLS0,D VOL 800165
800165 is the volume number of the tape which you require.
the output is like:
RESPONSE=MVS1 SLS0600I VOLUME 800165 ; 00:00:04:02:23, UNSELECTED,RESPONSE=SCRATCH
Which means it is in the rack.
If you get any out like:Here I have searched for volume 100165
RESPONSE=MVS1 SLS0603I VOLUME(S) 100165 NOT IN ACS
which means it is not in the rack.
It's a proactive thing which we can follow to prevent any failure which is resulting from using tapes in current job.
IBM Certified DB2 DBA.