Page 1 of 1

HOW to check the paramers of TAPE file

PostPosted: Tue Jun 05, 2012 4:56 pm
by rdrsaurabh
Hi All,

LISTDSI command only validate the DASD File not TAPE File.
Could you please help me how can i check the Parameters of the TAPE file?
below is the details:

In my tool
first i am checking the file is available or not, if it is available the get the values of the LRECL,BLKSIZE,ect..
for that i am using LISTDSI Command in CLIST ,for DASD files my code is working not not valid for TAPE files.

Re: HOW to check the paramers of TAPE file

PostPosted: Tue Jun 05, 2012 5:54 pm
by NicC
You do know that tapes are not usually available for TSO? Therefore you have to run your job in batch. Also, why not interface to your tape management system?

Re: HOW to check the paramers of TAPE file

PostPosted: Wed Jun 20, 2012 10:27 am
by Anuj Dhawan
How about using the DSINFO ISPF Service, or by using IGGCSIRX (example in SYS1.SAMPLIB(IGGCSIRX).

Or try this
//STEP010  EXEC PGM=SYNCTOOL       
//TOOLMSG  DD  SYSOUT=*           
//DFSMSG   DD  SYSOUT=*           
//DD01     DD  DSN=TAPE_FILE_NAME,
//             DISP=SHR           
//TOOLIN   DD  *                   
   COUNT FROM(DD01)               
/*                                 
//*                               

For characteristics of tape look
//TOOLMSG
//DFSMSG

You'll find something like:
WER108I  DD01     : RECFM=FB   ; LRECL=  2250; BLKSIZE= 31500

Re: HOW to check the paramers of TAPE file

PostPosted: Wed Jun 20, 2012 11:37 am
by expat
Anuj, is it wise getting the OP to use a method which requires the mounting of a tape :o

Re: HOW to check the paramers of TAPE file

PostPosted: Wed Jun 20, 2012 9:36 pm
by dick scherrer
Hello,

Especially as the record count should be available in the Tape Management system . . .

Suggest asking the Tape Management people if they have a process you could use to get what you want. When i've worked with this, there is both online and batch ways to get info about tape datasets that require NO interacton with the actual tape(s).