In a REXX procedure, anything not recognized as an instruction, assignment, or label is considered a command. The statement recognized as a command is treated as an expression. The expression is evaluated first, then the result is passed to the operating system.
The following example, COPYLIST.CMD, shows how a command is treated as an expression. Note how the special character (*) is put in quotation marks. COPYLIST.CMD copies files from drive A to drive B.
/* Issuing a command from a procedure. This example copies */ /* all files that have an extension of.LST from */ /* drive A to drive B. */ SAY COPY "a:*.lst b:" /* This statement is treated as */ /* an expression. */ /* The result is passed to OS/2. */ EXIT
┴╓: In the preceding example, the whole OS/2 command except for COPY is in quotation marks for the following reasons:
o