Can we retrieve properties of TAPE files in REXX



IBM's Command List programming language & Restructured Extended Executor

Can we retrieve properties of TAPE files in REXX

Postby Mann_B » Mon Nov 21, 2011 6:05 pm

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
Mann_B
 
Posts: 79
Joined: Wed Mar 31, 2010 11:48 am
Has thanked: 0 time
Been thanked: 0 time

Re: Can we retrieve properties of TAPE files in REXX

Postby MrSpock » Mon Nov 21, 2011 6:28 pm

Not that I know of, no. Usually details for data on tape have to be retrieved through your tape management system.
User avatar
MrSpock
Global moderator
 
Posts: 809
Joined: Wed Jun 06, 2007 9:37 pm
Location: Raleigh NC USA
Has thanked: 0 time
Been thanked: 4 times

Re: Can we retrieve properties of TAPE files in REXX

Postby expat » Mon Nov 21, 2011 9:28 pm

Define exists

Exists physically or exists as a catlog entry ?
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: Can we retrieve properties of TAPE files in REXX

Postby NicC » Tue Nov 22, 2011 1:35 am

Presumably your 'rexx' created the tape in batch as it is highly unusual to use tapes in TSO/ISPF.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Can we retrieve properties of TAPE files in REXX

Postby dick scherrer » Tue Nov 22, 2011 12:52 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Can we retrieve properties of TAPE files in REXX

Postby Mann_B » Tue Nov 29, 2011 10:19 am

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
Mann_B
 
Posts: 79
Joined: Wed Mar 31, 2010 11:48 am
Has thanked: 0 time
Been thanked: 0 time

Re: Can we retrieve properties of TAPE files in REXX

Postby steve-myers » Tue Nov 29, 2011 11:34 am

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.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: Can we retrieve properties of TAPE files in REXX

Postby expat » Tue Nov 29, 2011 3:03 pm

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.
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post