(For those who don't know what 'wdnns' means, it is a reference to a misquote of a line from Treasure of the Sierra Madre and for the rest, you can look it up on the web. The expansion is "We don' need no steenking ..." 'Nuf said.)
It is my firmly held conviction that INTERPRET is almost never required for ordinary REXX processing. Les Koehler has come up with one or two scenaria where it is useful but they are so bizarre that 'esoteric' is a risible understatement. Most uses of INTERPRET run something like this:
/* 'parm' looks like ' name=Smith ' */ parse var parm tag "=" tagval interpret tag "=" tagval
I hope I got that right. Since I never use INTERPRET and I don't have a mainframe to test this out, I have to guess as to what the code would actually look like. If I were writing this code, I would use VALUE instead.
parse var parm tag '=' tagval rc = Value(tag,tagval)
I have also seen entire commands constructed piece-by-piece and then INTERPRETed to cause the command to be executed. Unnecessary.
interpret "ISPEXEC TBCREATE" tblnm blah blah blah
I have never seen a case where the INTERPRET couldn't simply be converted to a straight execution:
"ISPEXEC TBCREATE" tblnm blah blah blah
Anyone with a true instance of a necessary INTERPRET is welcome to present the same here. I'd love to be proven wrong.