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
 

 

Unable to do LISTDS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Unable to do LISTDS
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

Moderator Team Head


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

PostPosted: Mon Jun 16, 2008 9:28 pm    Post subject: Reply to: Unable to do LISTDS
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    Post subject:
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

Senior Member


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

PostPosted: Tue Jun 17, 2008 12:27 am    Post subject: Reply to: Unable to do LISTDS
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: 2360
Location: Israel

PostPosted: Tue Jun 17, 2008 1:05 am    Post subject:
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

Senior Member


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

PostPosted: Tue Jun 17, 2008 3:01 am    Post subject: Reply to: Unable to do LISTDS
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Tue Jun 17, 2008 2:03 pm    Post subject:
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

Senior Member


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

PostPosted: Tue Jun 17, 2008 9:52 pm    Post subject: Reply to: Unable to do LISTDS
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts I am unable to use SWAPBAR ON command... mrsidhu12 TSO/ISPF 3 Thu Sep 01, 2016 1:10 pm
No new posts Unable to view Unloaded file using DC... Rohit Umarjikar DB2 4 Thu Dec 31, 2015 6:46 pm
No new posts REXX EDIT MACRO unable to handle doub... anjali.bisht TSO/ISPF 10 Thu Mar 12, 2015 4:55 pm


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