The DSCB (and OBTAINing it) is a DASD construct.  For the equivalent with tape 
you have to read sequentially looking for labels.   
 > Date: Tue, 2 Oct 2012 10:14:14 +0000
> From: robin.atw...@microfocus.com
> Subject: How to get a tape's DSCB
> To: IBM-MAIN@LISTSERV.UA.EDU
> 
> I am investigating the use of catalogued tapes. We have created one such and 
> you can see it with ISPF 3.4, although line commands are prohibited . The 
> existing code I am working with dynamically allocates the DSN on the tape, 
> reads the JFCB and then issues the OBTAIN macro to get DSCB information. 
> However, with a DSN on a tape volume you always get RC=4, "Volume not 
> mounted" (the TSO LISTDSI command tells you the same thing). But of course, 
> the tape *is* mounted. I can run IEBGENER and copy the DSN, so what is the 
> correct technique in this situation. I have a dim memory that OPEN TYPE=J is 
> useful but would be grateful for any suggestions.
> 
> TIA
> -Robin
> 
> Please consider the environment before printing this e-mail.
> 
> Micro Focus Limited is registered in England and Wales. Registered number: 
> 01504593 Registered office: The Lawn, 22-30 Old Bath Road Newbury, Berkshire, 
> RG14 1QN, UK
> This message has been scanned by MailController - portal1.mailcontroller.co.uk
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN
                                          
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to