Re: Sv: Execute Rexx from Cobol

2024-05-07 Thread Glenn Knickerbocker
On Tue, 7 May 2024 18:27:08 +, Lars Höglund  wrote:
>We had a program called JOBINFO (in allocated STEPLIB)
>Didn't realize that jobinfo = jobinfo() in a Rexx will trying to start, and 
>maybe executing the cobolmodule
>We also have a Rexx called jobinfo, and that the one I want to execute.

Oh!  Here's what I didn't know about the REXX function/subroutine search order 
on TSO until just now:

https://www.ibm.com/docs/en/zos/3.1.0?topic=subroutines-search-order
>If a match to the function name is not found, the function search order flag 
>(FUNCSOFL) is checked. The FUNCSOFL flag (see Flags and corresponding masks) 
>indicates whether load libraries are searched before the search for a REXX 
>exec.
>
>If the flag is off, check the load libraries. If a match to the function name 
>is not found, search for a REXX program.
>
>If the flag is on, search for a REXX program. If a match to the function name 
>is not found, check the load libraries.
>
>By default, the FUNCSOFL flag is off, which means that load libraries are 
>searched before the search for a REXX exec.

¬R

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN


Re: Sv: Execute Rexx from Cobol

2024-05-07 Thread Willy Jensen
You found the solution, fine. Fyi, I recently wrote a assembler subroutine, it 
can be called from COBOL, C, PL/I and probably other, to access REXX variables 
and the TSO stack, and it can also start a REXX. It is available on request.

--
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN