Page 1 of 1

What library is a REXX procedure called from?

PostPosted: Mon Jul 30, 2012 4:27 pm
by Richard Eden
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.

Re: What library is a REXX procedure called from?

PostPosted: Mon Jul 30, 2012 5:33 pm
by enrico-sorichetti
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

Re: What library is a REXX procedure called from?

PostPosted: Mon Jul 30, 2012 6:19 pm
by Richard Eden
Thanks.

Richard.

Re: What library is a REXX procedure called from?

PostPosted: Tue Jul 31, 2012 2:53 am
by prino
I've been using this for years.

Re: What library is a REXX procedure called from?

PostPosted: Tue Jul 31, 2012 4:37 pm
by Richard Eden
Your find_origin subroutine works perfectly.

Thanks for your help.
Richard.