in reply to invocation mode - how discover?

Is it possible you are simply looking for the $0 variable, aka $PROGRAM_NAME? It is hard to tell what you need from your terse question. Of course, I know nothing about Rexx -- perhaps to a Rexx monk all would be clear. :)

$0 "Contains the name of the file containing the Perl script being executed." Programming Perl, 3rd edition, p. 672


No good deed goes unpunished. -- (attributed to) Oscar Wilde