How to see information of file stored in tape



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

How to see information of file stored in tape

Postby GeorgeQ » Thu Jun 22, 2017 12:26 am

Hello everyone,

I want to check the date of a file stored in tape, so I place / and choose 7 to view info of the file.

but it show me "Tape not supported".

please help me.

Thanks!
GeorgeQ
 
Posts: 28
Joined: Fri Jun 16, 2017 1:08 am
Has thanked: 12 times
Been thanked: 0 time

Re: How to see information of file stored in tape

Postby prino » Thu Jun 22, 2017 12:40 am

Use your site's tape management system!
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times

Re: How to see information of file stored in tape

Postby GeorgeQ » Thu Jun 22, 2017 12:44 am

prino wrote:Use your site's tape management system!

Thank you very much prino. May I ask where I can locate tape management system?
GeorgeQ
 
Posts: 28
Joined: Fri Jun 16, 2017 1:08 am
Has thanked: 12 times
Been thanked: 0 time

Re: How to see information of file stored in tape

Postby Robert Sample » Thu Jun 22, 2017 2:08 am

You need to talk to your site support group. Since a tape cannot be mounted via a TSO session, as you have found, attempting to access a tape via ISPF will give you an error message. It is not required that a site have a tape management system, but almost all sites do. How to access it requires contacting the site support group since there are different tape management systems available (such as Zara, DFSMSrmm, CA-1 to name three), each with different access requirements, and your site support group determines whether to place the access information on the main ISPF panel, or a subsidiary ISPF panel, or even directly through VTAM. We cannot help you with this since we do not work for your site and have no idea how things are structured there. Only someone working AT YOUR SITE can possibly help you.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: How to see information of file stored in tape

Postby GeorgeQ » Thu Jun 22, 2017 2:45 am

Thank you very much.
GeorgeQ
 
Posts: 28
Joined: Fri Jun 16, 2017 1:08 am
Has thanked: 12 times
Been thanked: 0 time

Re: How to see information of file stored in tape

Postby edipoliveira » Fri Sep 01, 2017 6:53 pm

you can copy data's tape to a sequencial file then see this.

If you want a example I can post here.

These users thanked the author edipoliveira for the post:
GeorgeQ (Fri Sep 01, 2017 9:33 pm)
edipoliveira
 
Posts: 2
Joined: Fri Sep 01, 2017 6:50 pm
Has thanked: 0 time
Been thanked: 1 time

Re: How to see information of file stored in tape

Postby Robert Sample » Fri Sep 01, 2017 7:07 pm

edipoliveira, exactly how does your "solution" provide what was asked for? The person wants to know the "date of a file stored on tape" which presumably means the creation date although that was not specified. By copying the data to a sequential file (first fallacy: on a mainframe, files exist on tape and in Unix System Services ONLY -- all else are data sets), how are you providing the creation date of the tape file? The second fallacy you have is saying to copy to a "sequencial file" (sic) again, data set not file -- anything on a tape is sequential (the correct spelling) anyway! So your "solution" does not answer the original question, and is at best misleading since the data is already stored in a sequential file (namely, a file on a tape).

These users thanked the author Robert Sample for the post:
GeorgeQ (Fri Sep 01, 2017 9:33 pm)
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: How to see information of file stored in tape

Postby Terry Heinze » Fri Sep 01, 2017 7:21 pm

As suggested, your site's tape management system is the best option, but if all you want is the date created, you can do an IDCAMS LISTCAT to get that:
       DATASET-OWNER-----(NULL)     CREATION--------2017.234
        RELEASE----------------2     EXPIRATION------0000.000
      VOLUMES
        VOLSER------------V10269     DEVTYPE------X'78048083'     FSEQN---------
---------1
      ASSOCIATIONS
        GDG------xxxxxx.xxxxxxxx.xxxxxxxx
      ATTRIBUTES
 ***
.... Terry
Terry Heinze
 
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Re: How to see information of file stored in tape

Postby steve-myers » Fri Sep 01, 2017 7:50 pm

Mr. Heinze appears to be showing part of the output of a LISTCAT command. This can be useful, but the creation date (2017.234) is the creation date of the catalog entry; it may not be the creation date of the data set on the tape. The information stored in the tape management system's catalog is usually more accurate, but it still may not accurately reflect the creation date stored in the data set label on the tape. Only specialized programs can retrieve this information reliably. No ordinary program can access this information.

There is at least one program in the CBT collection (http://www.cbttape.org) you can use. Search for TAPEMAP. If you have SAS, there is a prewritten proc that is part of SAS you can use. Look for tape map in your SAS documentation. Both the CBT program and SAS require you to be able to access the tape using BLP (Bypass Label Processing). BLP skips the rudimentary security processing for tapes and requires two different types of security authorizations to proceed. Your site security should be able to assist you with that.
steve-myers
Global moderator
 
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Re: How to see information of file stored in tape

Postby willy jensen » Mon Sep 04, 2017 1:46 pm

a tape cannot be mounted via a TSO session

Is not entirely accurate. You can if you are authorized for it, which most people typically are not. You might have DITTO installed, which have an option 12 'Tape specific functions'.
But in my opinion tape access should be done in batch. And the TAPEMAP program that steve-myers mentioned is a very good tool.
willy jensen
 
Posts: 467
Joined: Thu Mar 10, 2016 5:03 pm
Has thanked: 0 time
Been thanked: 70 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post