What library is a REXX procedure called from?



IBM's Command List programming language & Restructured Extended Executor

What library is a REXX procedure called from?

Postby Richard Eden » Mon Jul 30, 2012 4:27 pm

I need to code something in a REXX procedure that will obtain the name of the PDS library from which the REXX procedure was called. Is there any way that I can do this?

Thanks for any advice.
Richard.
Richard Eden
 
Posts: 10
Joined: Fri Nov 26, 2010 8:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What library is a REXX procedure called from?

 

Re: What library is a REXX procedure called from?

Postby enrico-sorichetti » Mon Jul 30, 2012 5:33 pm

not out of the box.

depending on the way the <exec> was invoked
for common invocation method ( just type the name) the parse source will give You the ddname
after that it' s up to You to scan the concatenation sequence to find out from which dataset the
rexx was fetched
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2643
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: What library is a REXX procedure called from?

Postby Richard Eden » Mon Jul 30, 2012 6:19 pm

Thanks.

Richard.
Richard Eden
 
Posts: 10
Joined: Fri Nov 26, 2010 8:07 pm
Has thanked: 0 time
Been thanked: 0 time

Re: What library is a REXX procedure called from?

Postby prino » Tue Jul 31, 2012 2:53 am

I've been using this for years.
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 536
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 21 times

Re: What library is a REXX procedure called from?

Postby Richard Eden » Tue Jul 31, 2012 4:37 pm

Your find_origin subroutine works perfectly.

Thanks for your help.
Richard.
Richard Eden
 
Posts: 10
Joined: Fri Nov 26, 2010 8:07 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post