View previous topic :: View next topic
|
Author |
Message |
nayak
New User
Joined: 13 Jul 2005 Posts: 37
|
|
|
|
I'm unable to do LISTDS on a PDS. I'm getting RC 20. I searched the Manuals but didn't get any thing. But when I do the same outside the rexx code I'm able to do successfully. Not sure why it is not working inside the code.
Thank You
n. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Please post a run-time trace of your REXX exec showing the error. |
|
Back to top |
|
|
nayak
New User
Joined: 13 Jul 2005 Posts: 37
|
|
|
|
Code: |
*-* "LISTDS '"OUTA"' MEMBERS"
>>> "LISTDS 'A.B.C' MEMBERS"
+++ RC(20) +++
IRX0100I +++ Interactive trace. TRACE OFF to end debug, ENTER to continue. +++
*-* SAY RC
>>> "20"
20
|
Thank You
n. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
Please confirm that your rexx / non-rexx invocation of LISTDS are both from TSO and same userid.
Can you use the LISTDSI rexx builtin function to get information about the dataset? It will not get you member information, but may be of help to determine what is wrong with the dataset. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
Well, all I can say is that LISTDS is an authorized program, and in some cases it calls RACF macros. It might be worth checking with your security guys.
O. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
If it is an authorization problem, try issuing:
Code: |
Address TSO
"TSOEXEC LISTDS '"OUTA"' MEMBERS" |
|
|
Back to top |
|
|
nayak
New User
Joined: 13 Jul 2005 Posts: 37
|
|
|
|
Not sure , what happened ... But when i add TSOEXEC .. it is working as expected .
Thank You
n. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
maybe listds is a TSO command and you need to address the TSO environment. |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2547 Location: Silicon Valley
|
|
|
|
From help for TSOEXEC:
Quote: |
THE TSOEXEC COMMAND IS USED TO EXECUTE AN AUTHORIZED
OR UNAUTHORIZED TSO COMMAND FROM WITHIN AN UNAUTHORIZED
ENVIRONMENT. |
If it works with TSOEXEC and does not work without... clearly an authorization problem. Not RACF-wise, but APF-wise. Some programs can do supervisor level instructions, but they cannot be called directly from user-level environments. |
|
Back to top |
|
|
|