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

Unable to do LISTDS


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Mon Jun 16, 2008 9:18 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Mon Jun 16, 2008 9:28 pm
Reply with quote

Please post a run-time trace of your REXX exec showing the error.
Back to top
View user's profile Send private message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Mon Jun 16, 2008 9:49 pm
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Jun 17, 2008 12:27 am
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Jun 17, 2008 1:05 am
Reply with quote

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
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Jun 17, 2008 3:01 am
Reply with quote

If it is an authorization problem, try issuing:

Code:
Address TSO
"TSOEXEC  LISTDS '"OUTA"' MEMBERS" 
Back to top
View user's profile Send private message
nayak

New User


Joined: 13 Jul 2005
Posts: 37

PostPosted: Tue Jun 17, 2008 10:21 am
Reply with quote

Not sure , what happened ... But when i add TSOEXEC .. it is working as expected .


Thank You
n.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Jun 17, 2008 2:03 pm
Reply with quote

maybe listds is a TSO command and you need to address the TSO environment.
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Tue Jun 17, 2008 9:52 pm
Reply with quote

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
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Infosphere Optim - unable to save Col... IBM Tools 0
No new posts DFHCSDUP EXTRACT unable to open outpu... CICS 5
No new posts Unable to connect FTP over TLS from z... All Other Mainframe Topics 5
No new posts Unable to retrieve Datasets Names usi... CLIST & REXX 20
No new posts Unable to display comp variable COBOL Programming 4
Search our Forums:

Back to Top