Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Where does LISTDSI live?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Where does LISTDSI live?
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    Post subject:
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    Post subject:
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: 642
Location: Whitby, ON, Canada

PostPosted: Sat May 26, 2012 5:40 am    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Sat May 26, 2012 9:10 pm    Post subject: Reply to: Where does LISTDSI live?
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    IBMMAINFRAMES.com Support Forums -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts LISTDSI with RECALL option swathykrishnan CLIST & REXX 2 Thu Jan 31, 2013 2:37 pm
No new posts How CICS will kill long live transact... mukun264 CICS 3 Tue Jan 05, 2010 12:22 am
No new posts Usage of LISTDSI in Rexx ananth86 CLIST & REXX 11 Tue Dec 01, 2009 6:31 pm
No new posts LISTDSI error MARINA JOSEPH CLIST & REXX 5 Tue Oct 27, 2009 1:54 pm
No new posts Original Allocation & Actual Allo... Robert Sample JCL & VSAM 5 Thu Oct 22, 2009 11:04 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us