executes CMS commands. It is similar
to the CMS statement, which is described on CMS. The %CMS statement enables you to
execute CMS commands immediately. It places the return code in the automatic
variable &SYSRC. You can use the %CMS statement either inside or outside
a macro. The form of the statement is
You can use
any CMS command or any sequence of macro
operations that generate a CMS command. If you omit the command,
your SAS session is suspended and your CMS session is placed in CMS subset
mode. To return to the SAS session, press Enter.
If a SAS program that contains a %CMS statement is transported
to another operating environment, the %CMS statement is treated as a comment.