🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.listserv.tsorexx
Article #175

Re: LISTDSI for tape datasets

#175
From: Harold Mains
Date: Tue, 07 May 2013 22:56
40 lines
3336 bytes
From what I can see of BPXWDYN, it allows me to allocate datasets to a DDname. 

What is need is to be able to see the DSN of a tape dataset that was already allocated to a DDname in the JCL of the job that I am at this moment executing.     This is what X = LISTDSI(ddname FILE)  with its FILE parameter allows me to do for DASD datasets. 
Can BPXWDYN do this?   What does the command look like to do this?  


Thanks,  

Harold Mains
California State Controller's Office
ISD Enterprise Systems Support
Phone (916) 324-7284

-----Original Message-----
From: TSO REXX Discussion List [mailto:TSO-REXX@VM.MARIST.EDU] On Behalf Of Paul Gilmartin
Sent: Tuesday, May 07, 2013 2:39 PM
To: TSO-REXX@VM.MARIST.EDU
Subject: Re: [TSO-REXX] LISTDSI for tape datasets

On 2013-05-07 15:32, Harold Mains wrote:
> In a  batch job, in a REXX program, given a DDname found in the JCL, I can invoke LISTDSI as follows to obtain the DSN for that DDname:
>
>           X = LISTDSI(ddname FILE)
>
> But LISTDSI in general and this code in particular fails when the DSN is for a tape dataset.
>
> Is there any equivalent REXX-invokable command that will provide the DSN in the JCL for a tape dataset?
>
Try BPXWDYN( 'info ...' )

LISTDSI is brain-dead.  It also will not provide information on allocated UNIX files nor on JES data sets.  And the information it returns does _not_ take into account overriding DCB parameters.

-- gil

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions, send email to LISTSERV@VM.MARIST.EDU with the message: INFO TSO-REXX

----------------------------------------------------------------------
For TSO-REXX subscribe / signoff / archive access instructions,
send email to LISTSERV@VM.MARIST.EDU with the message: INFO TSO-REXX
Technical Details
Message-ID: <A65B935D002D8140B8A9E1D9812AF8721ACC7874@EXMBOX04.ad.sconet.ca.gov>
Path: arc1-ca.pugleaf.net!hg5ni110144wib.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!nrc-news.nrc.ca!newsflash.concordia.ca!ottix-news.ottix.net!newsswitch.lcs.mit.edu!xmission!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
References: <A65B935D002D8140B8A9E1D9812AF8721ACC7776@EXMBOX04.ad.sconet.ca.gov> <51897463.2070001@AIM.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 357a14e69d,64b66f183d485666
X-Google-Attributes: gid357a14e69d,public,usenet
X-Google-NewGroupId: yes
X-Google-Language: ENGLISH,ASCII-7-bit
X-Received: by 10.180.188.98 with SMTP id fz2mr1645821wic.4.1368583116195;
        Tue, 14 May 2013 18:58:36 -0700 (PDT)
Path: arc1-ca.pugleaf.net!hg5ni110144wib.1!nntp.google.com!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.87.MISMATCH!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!border4.nntp.ams.giganews.com!border2.nntp.ams.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed.news.ucla.edu!nrc-news.nrc.ca!newsflash.concordia.ca!ottix-news.ottix.net!newsswitch.lcs.mit.edu!xmission!news.glorb.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!spln!newsgate.newsguy.com!newsp.newsguy.com!mdrn
From: HMains@SCO.CA.GOV (Harold Mains)
Newsgroups: bit.listserv.tsorexx
Subject: Re: LISTDSI for tape datasets
Date: 7 May 2013 15:56:33 -0700
Organization: None
Lines: 41
Message-ID: <A65B935D002D8140B8A9E1D9812AF8721ACC7874@EXMBOX04.ad.sconet.ca.gov>
References: <A65B935D002D8140B8A9E1D9812AF8721ACC7776@EXMBOX04.ad.sconet.ca.gov>
            <51897463.2070001@AIM.com>
Reply-To: TSO REXX Discussion List <TSO-REXX@vm.marist.edu>
NNTP-Posting-Host: EXMBOX04.ad.sconet.ca.gov
Mime-Version: 1.0
NNTP-Posting-Date: 7 May 2013 22:56:33 GMT
X-Received-Bytes: 2608
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 8bit