Use this command to run the active editor's contents as a REXX script. The script will run until it either does an EXIT or a RETURN instruction, or you manually stop it with the Halt script command.

If the script does a SAY instruction, then the the Console Window will open and display what the script is SAY'ing.

If the script does a PULL instruction, then the Console window will open and display a cursor. You must enter a line of text (and usually press the ENTER key when finished). This text is then returned to the script.

If the script encounters a SYNTAX error, and the script is not trapping that error, then the script is aborted. You will hear a beep from the computer speaker. The the Debugger Window will pop open and display an error message indicating why the SYNTAX condition was raised along with the ANSI error number. The editor window (for that script) will jump to the line where the error occurred and place a red arrow next to it.

If the script successfully ends itself with an EXIT or RETURN instruction, then the message "Script has finished successfully." will appear in the Status bar.

Note: Only one editor at a time can be run. You must use the Halt script command (or the Abort debugger command) to first stop any running script before you try to run another editor's contents as a REXX script.

You can also run a script with the debugger silently running in the background by using the Debug -> Run command. This allows you to also pause (but not abort) the script at any time by using the Break command, at which time the debugger kicks in and pauses at the instruction that was executing when you issued a Break.