I have a Rexx script which functions standalone, and I wish to use another Rexx script to call particular functions within it. I am aware I can call both an entire external Rexx file and internal Rexx functions with call
, but am I able to call a single function inside an external script? The following example illustrates what I want to do:
/* REXXA */
say 'hello'
run_test:
say 'test'
...
/* REXXB */
call 'REXXA' /* will say both 'hello' and 'test' */
How can I modify REXXB to say only 'test'?
EDIT: Further research indicates I might be looking for RxFuncAdd - can anyone confirm if that works with mainframe Rexx scripts? Most of the references involving it have been with regards to DLL libraries...
EDIT 2: Apparently not... anybody got any better ideas?
EDIT 3: I mustn't have explained my requirements properly, sorry about that - as per the comment under NealB's response, I essentially want something akin to calling a 'sin' function inside a 'math' class. The code I am writing is REXXB in the example above, and I want to change REXXA as little as possible.