Hi,
your situation is a "it-works-as-designed" problem.
The description of the REXX CALL statement (TSO/E REXX Reference) says:
The following list describes the steps used to search for a REXX exec
for a function or subroutine call:
a. Search the ddname from which the exec that is calling the function or
subroutine was loaded. For example, if the calling exec was loaded from
the DD MYAPPL, the system searches MYAPPL for the function or subroutine.
b. Search any exec libraries as defined by the TSO/E ALTLIB command.
That is different to the behavior, you'll find if you start the REXX
subroutine via explicit or implicit TSO EXEC
Example:
/* REXX */
cexec = "'KEHR.TOOL2.CEXEC'"
exec = "'KEHR.TOOL2.EXEC'"
"ALTLIB ACTIVATE APPLICATION(EXEC) ",
"DSNAME("cexec" "exec")"
"TSTALT" <---- (1)
call tstalt <---- (2)
exit
If the procedure TSTALT is contained in both libraries, (1) will start
the one in the CEXEC library, (2) will start the one in EXEC library .
Willy Jensen (Willy Jensen) schrieb:
Hi, I just ran into a strange situation where a REXX in an ALTLIB'd library was
not called, instead one with the same name, but in my SYSEXEC
concatenation was called, even though ALTLIB DISPLAY clearly shows the
ALTLIB'd library on top.
After a bit of experimentation I found that it happens when the called name is
found in the same library as my 'caller' REXX. Anyone else seen this? Is it
documented behaviour (I can't find it)?
Cheers
Willy
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html
--
___________________________________________________________________
Freundliche Gruesse / Kind regards
Dipl.Math. Juergen Kehr, IT Schulung & Beratung, IT Education + Consulting
Tel. +49-561-9528788 Fax +49-561-9528789 Mobil +49-172-5129389
ICQ 292-318-696 (JKehr)
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
___________________________________________________________________
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html