Page 1 of 1

Can we retrieve properties of TAPE files in REXX

PostPosted: Mon Nov 21, 2011 6:05 pm
by Mann_B
Hi

Do we have any command to retrieve file attributes for a TAPE files.
I have a requirement to check if the created output file from REXX whic will be on Tape exists or not ?
If exists I need to create the file with another name..

Thank you

Re: Can we retrieve properties of TAPE files in REXX

PostPosted: Mon Nov 21, 2011 6:28 pm
by MrSpock
Not that I know of, no. Usually details for data on tape have to be retrieved through your tape management system.

Re: Can we retrieve properties of TAPE files in REXX

PostPosted: Mon Nov 21, 2011 9:28 pm
by expat
Define exists

Exists physically or exists as a catlog entry ?

Re: Can we retrieve properties of TAPE files in REXX

PostPosted: Tue Nov 22, 2011 1:35 am
by NicC
Presumably your 'rexx' created the tape in batch as it is highly unusual to use tapes in TSO/ISPF.

Re: Can we retrieve properties of TAPE files in REXX

PostPosted: Tue Nov 22, 2011 12:52 pm
by dick scherrer
Hello,

Do we have any command to retrieve file attributes for a TAPE files.
Which attributes?
I have a requirement to check if the created output file from REXX whic will be on Tape exists or not ?
Have you verified on which media the file resides?

Your best source for this information is your Tape Storage Management people.

Re: Can we retrieve properties of TAPE files in REXX

PostPosted: Tue Nov 29, 2011 10:19 am
by Mann_B
Hi All

Thank You for your replies
I have tried LISTC ,
"LISTC ENT('"STRIP(DSN)"')"
If RC=0
Then the DSN given is cataloged.I wanted to know if the DNS(in Tape) already exists or not.

Thank You

Re: Can we retrieve properties of TAPE files in REXX

PostPosted: Tue Nov 29, 2011 11:34 am
by steve-myers
LISTC will tell you if there is a catalog entry, but that is not proof the dataset actually exists on the tape volume. Only by actually opening the dataset can you prove the dataset exists on the tape volume. Using the tape management system is not really proof the dataset is really there.

Re: Can we retrieve properties of TAPE files in REXX

PostPosted: Tue Nov 29, 2011 3:03 pm
by expat
steve-myers wrote:LISTC will tell you if there is a catalog entry, but that is not proof the dataset actually exists on the tape volume. Only by actually opening the dataset can you prove the dataset exists on the tape volume. Using the tape management system is not really proof the dataset is really there.

Especially true with VTS. In the day of physical tapes, unless the tape had since been written on the data would still exist, but with VTS and depending on the setup at your site, the tape may be come totally unusable the very second it is returned to the scratch pool.