Chapter Contents |
Previous |
Next |
DM |
Valid: | anywhere |
Category: | Program Control |
Syntax |
DM <window> 'command(s)' <window> <CONTINUE>; |
Default: | If you omit the window name, SAS uses the Program Editor window as the default. |
Tip: | Any windows that are activated by the SAS statements (such as the Output window) appear before the window that is to be made active. |
Note: | If you specify Log as the active window, for example, and have other SAS statements that follow the DM statement (for example, in an autoexec file), those statements are not submitted to SAS until control returns to the SAS interface. |
Details |
Execution occurs when the DM statement is submitted to SAS. This statement is useful for
Examples |
dm 'color text cyan; color command red';
dm log 'clear; pgm; color numbers green' output;
dm 'caps on';
dm log 'clear' output;
This example causes SAS to display the first window of the SAS/AF application, executes the DATA step, moves the cursor to the first field of the SAS/AF application window, and makes that window active.
dm 'af c=your-program' continue; data temp; . . . more SAS statements . . . run;
This example displays the first window of the SAS/AF application and executes the PROC PRINT step, which activates the OUTPUT window. Closing the OUTPUT window moves the cursor to the last active window..
dm 'af c=your-program' continue; proc print data=temp; run;
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.