It's invoked via function key as a Primary Command. It needs ISREDIT MACRO to 
work. Parse Arg will not work. I don't think "how it was invoked" contains the 
answer.

On Thu, 4 Sep 2025 15:03:08 -0500, Jon Perryman <[email protected]> wrote:

>On Thu, 4 Sep 2025 12:01:24 -0500, Charles Mills <[email protected]> wrote:
>
>> If the macro is invoked from within the macro-initiated BROWSE
>> I get an error on the above statement, which is kind of ugly. 
>
>Doesn't PARSE SOURCE solve this problem by telling you how the exec was 
>invoked and if you need to parse args versus ISREDIT MACRO? I would expect it 
>to return FUNCTION if it's a called function.
>
>Is ISREDIT MACRO required? You could try parse arg.
>
>If you wanted to support ISREDIT MACRO in all execs, then try ISPEXEC SELECT 
>CMD to invoke your exec instead of calling it as a REXX function.
>
>----------------------------------------------------------------------
>For IBM-MAIN subscribe / signoff / archive access instructions,
>send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to