Previous Topic: 13.1.5.2 Extended Options PanelNext Topic: 13.1.5.4 Data Element Derivation Panel


13.1.5.3 Global Data Selection Panel


Figure 13-1.03 displays the Global Data Selection Macro
Definition panel.

/-------------------------------  SAS Statements  ------------------------------\
|Command ===>                                                  Scroll ===> CSR  |
|                                                                               |
|Inquiry Step:  Relative Importance                                             |
|                                                                               |
|Line Cmds: I Insert  D Delete  R Repeat  M Move  C Copy                        |
|                                                                               |
|Cmd  SAS Statements for:  Specifying global data selection                     |
| -   ------------------------------------------------------------------------  |
| _ - %MACRO SELEOF;                                                            |
| _   ________________________________________________________________________  |
| _   ________________________________________________________________________  |
| _   ________________________________________________________________________  |
| _   ________________________________________________________________________  |
| _   ________________________________________________________________________  |
| _   ________________________________________________________________________  |
| _   ________________________________________________________________________  |
| _   ________________________________________________________________________  |
| _   ________________________________________________________________________  |
| _   ________________________________________________________________________  |
| _ - %MEND SELEOF;                                                             |
|                                                                               |
\------------------------------------------------------------------------------/

 Figure 13-1.03.  Global Data Selection Macro Definition Panel

Relative Importance provides a user-exit that you can use to
control data selection from the CA MICS database. To invoke
this exit, code SAS statements in the SELEOF macro.  This
macro is bracketed by the %MACRO and %MEND statements that
are field protected to prevent accidental modification.

The default for the SELEOF macro is null.  This macro is
invoked when the Relative Importance observations are read
from the specified CA MICS file. You can use it to delete
observations from the data as it is selected.  For example,
in a job class study, you might want to exclude production
job classes from the analysis.  If production jobs are
designated by job class P, code the following:


     %MACRO SELEOF;
     IF JOBCLASS='P' THEN GO TO T_EOF;
     %MEND SELEOF;

Note that you do not have to code the %MACRO and %MEND
statements, as they are already provided for you.

The IF statement should specify branching to T_EOF rather
than acting as a subsetting IF or specifying DELETE.  A
subsetting IF or a DELETE statement may cause the program to
function incorrectly.

You must code each specified SAS statement in accordance with
the syntax of the SAS Macro Language, as described in the SAS
Language Reference: Dictionary (Version 8).