HOW to check the paramers of TAPE file



IBM's Command List programming language & Restructured Extended Executor

HOW to check the paramers of TAPE file

Postby rdrsaurabh » Tue Jun 05, 2012 4:56 pm

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.
rdrsaurabh
 
Posts: 6
Joined: Wed Oct 19, 2011 9:03 pm
Has thanked: 0 time
Been thanked: 0 time

Re: HOW to check the paramers of TAPE file

Postby NicC » Tue Jun 05, 2012 5:54 pm

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?
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: HOW to check the paramers of TAPE file

Postby Anuj Dhawan » Wed Jun 20, 2012 10:27 am

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
Anuj
Anuj Dhawan
 
Posts: 273
Joined: Mon Feb 25, 2008 3:53 am
Location: Mumbai, India
Has thanked: 6 times
Been thanked: 4 times

Re: HOW to check the paramers of TAPE file

Postby expat » Wed Jun 20, 2012 11:37 am

Anuj, is it wise getting the OP to use a method which requires the mounting of a tape :o
expat
 
Posts: 459
Joined: Sat Jun 09, 2007 3:21 pm
Has thanked: 0 time
Been thanked: 8 times

Re: HOW to check the paramers of TAPE file

Postby dick scherrer » Wed Jun 20, 2012 9:36 pm

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).
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


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post