IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Where does LISTDSI live?


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Sat May 26, 2012 2:48 am
Reply with quote

Went to use the "FILE" parameter like
Code:

ADDRESS TSO           
"LISTDSI PDSIN FILE" 

Within a REXX being run from batch job that uses ISPF services.

Started getting the "LISTDSI COMMAND NOT FOUND" problem. So I found where OUR copy of LISTDSI lives and added it to the JCL in the SYSPROC DD. It was a weird name : "WTSO.TEST.CLIST"

Then I get an error that the "FILE" parm is invalid. So I look at the LISTDSI and see that it was a homegrown version that was written in 2008 and it does not support the "FILE" parm.

So...what is the most likely library name for the where I can find the IBM version of this?

I realize I could be way off here. Is the LISTDSI really a program and I'm missing a steplib???
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Sat May 26, 2012 3:25 am
Reply with quote

if you can run a rexx script in foreground with listdsi successfully,
your tso logon has the ds concatenated somewhere.

isrdsn? nah, spelled it wrong, but use the tso command that lists out all the
dd names (and dsns) allocated to your session. it is one of those.

no, sorry ed. got no idea where it is.

maybe robert sample can find the doco that says where it is,
he is much better finding those esoteric manuals than i am.

(yes robert, i realize that it is probably not an esoteric manual.)
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Sat May 26, 2012 4:48 am
Reply with quote

the isrddn thing is how I found the command in the first place. For normal usage, it works. However, this internal version does not handle the "FILE" parm.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Sat May 26, 2012 5:40 am
Reply with quote

What happens when you try to run it like a rexx function?

x = LISTDSI('my.dsn')

LISTDSI is not a TSO command; I get COMMAND LISTDSI NOT FOUND when I try to execute it like one.
Back to top
View user's profile Send private message
Ed Goodman

Active Member


Joined: 08 Jun 2011
Posts: 556
Location: USA

PostPosted: Sat May 26, 2012 6:28 am
Reply with quote

You're right, you're right. It's a CLIST command, not a TSO command.

After I wrote ^that^ line, I looked at the REXX manual and found it there, so it's a REXX command too. Now I've got what I need using only REXX, so it's not going out to that home brewed clist.

THANK you so much Don.

Code:

X = LISTDSI('PDSIN FILE')         
SAY SYSDSNAME                     
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Sat May 26, 2012 9:10 pm
Reply with quote

Quote:
where I can find the IBM version of this?

It is a TSO/E external function, but that does not seem to be the module name... the rexx processor knows how to call it.

It only works in TSO/E... there will be environments where it does not work.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
No new posts Maintain LIVE data for many sysplexes... PL/I & Assembler 6
No new posts JCL to send email along with formated... JCL & VSAM 5
No new posts REXX LISTDSI () SMSINFO is not working CLIST & REXX 4
No new posts LISTDSI with RECALL option CLIST & REXX 2
Search our Forums:

Back to Top