Chapter Contents

Previous

Next
DM

DM



Submits SAS Program Editor, Log, Procedure Output or text editor commands as SAS statements

Valid: anywhere
Category: Program Control


Syntax
Arguments
Details
Examples
Example 1: Using the DM Statement
Example 2: Using the CONTINUE Option with SAS Statements That Do Not Activate a Window
Example 3: Using the CONTINUE Option with SAS Statements That Activate a Window

Syntax

DM <window> 'command(s)' <window> <CONTINUE>;

Arguments

window
specifies the active window. For more information, see Details.
Default: If you omit the window name, SAS uses the Program Editor window as the default.

'command'
can be any windowing command or text editor command and must be enclosed in single quotation marks. If you want to issue several commands, separate them with semicolons.

CONTINUE
causes SAS to execute any SAS statements that follow the DM statement in the Program Editor window and, if a windowing command in the DM statement called a window, makes that window active.
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

Window placement affects the outcome of the statement:


Examples

Example 1: Using the DM Statement


Example 2: Using the CONTINUE Option with SAS Statements That Do Not Activate a Window

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;

Example 3: Using the CONTINUE Option with SAS Statements That Activate a Window

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.