View previous topic :: View next topic
|
Author |
Message |
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
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 |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
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 |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
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 |
|
|
Ed Goodman
Active Member
Joined: 08 Jun 2011 Posts: 556 Location: USA
|
|
|
|
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 |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
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 |
|
|
|