- Nameless Rexx one-liner.
FWIW: the longer version is saved here as an easy-to-remember "Rexx Rechner", RR.CMD, but in English that could be a "Rexx Calculator" with a possibly conflict with the RC.EXE OS component , OS/2's resource compiler. I'd recommend the shortest version, because a longer version hardly checks anything, NUMERIC DIGITS 999 isn;'t always required, and you sort of know how it works anyway. Hence nameless instead of RC. RR probably only works in a few Germanic languages, and the classic Rexx one-liner never had a fixed name. AFAIK.
FWIW/2, for non-programmers: /**/;ARG x;INTERPRET SAY x comes down to a three-liner:
/**/
ARG x
INTERPRET SAY x
The mandatory Rexx comment.
The arguments are saved in one variable called X (e.g. the text "1 + 1", excluding the quotes)
SAY would print the text represented X, "1 + 1". To convert 1 + 1 to 2, INTERPRET executes "SAY 1 + 1" instead of SAY "1 + 1".
A cleaner version is /**/;ARG x;INTERPRET 'SAY' x;EXIT but one-liners tend to be as short as possible. The quotes avoid that SAY will be interpreted as a variable, and the EXIT is an explicitly clear EXIT.
There is no single manual like the page "HELP REXX ARITHMIC", because it supports all relevant built-in functions, like: X2D(FF)-X2D(C)+7
A "Rexx one-liner" could be a generic name for the Wiki, and the user can save it as any valid own *.CMD file name. You can also decide to skip it, because it's hardly more than a quite interesting introduction to Rexx. But I do actually use it quite frequently.