When writing your program, you can test statements as you go along using the REXXTRY command from the Windows command prompt. REXXTRY is a kind of Rexx mini-interpreter that checks Rexx statements one at a time. If you run REXXTRY with no parameter, or with a question mark as a parameter, REXXTRY also briefly describes itself.
From your current Windows or Unix/Linux window, open another window and type:
REXX rexxtry /* on windows the case of the REXX is insignificant */ rexx rexxtry /* on unix the Rexx command is always specified in lowercase */
REXXTRY describes itself and asks you for a Rexx statement to test. Enter your statement; REXXTRY then runs it and returns any information available, or displays an error message if a problem is encountered. REXXTRY remembers any previous statements you have entered during the session. To continue, just type the next line in your program and REXXTRY will check it for you.
Enter an equal sign (=) to repeat your previous statement, or a question mark (?) to invoke system-provided online information about the Rexx language.
When you are done, type:
exit
and press Enter to leave REXXTRY.
You can also enter a Rexx statement directly on the command line for immediate processing and exit:
REXX rexxtry call show
In this case, entering CALL SHOW displays the user variables provided by RexxTRY.