4. CA MICS Facilities › 4.2 CA MICS Component Generator (MCG) › 4.2.4 Generator Definition Statements › 4.2.4.3 MSI Definition Statements › 4.2.4.3.6 Data Type Definition Statements › 4.2.4.3.6.3 Data Type Definition (COMPUTE)
4.2.4.3.6.3 Data Type Definition (COMPUTE)
MSI fully supports the definition of COMPUTEd data
elements. To change a data element as COMPUTED, specify the
variable on the COMPUTE statement immediately followed by
the EXP and DEPEND statements. EXP defines the actual SAS
code that will perform the computation. DEPEND defines the
data elements that are required to be activated in order to
perform the computation.
STATEMENT FORMAT
This keyword is coded with the KEYWORD starting in column 1,
free-form, and continuing through column 72. Continuation is
not supported and multiple COMPUTE statements can be
specified. Only one element per statement is allowed. The
following describes the format and coding rules for the
COMPUTE statement.
COMPUTE element
| |
| |
| |
| |
| |
| +----data element name
|
+-----Statement identifier
STATEMENT OPTION DEFINITIONS
COMPUTE - Redefines the type of selected data elements to
COMPUTE.
element - Specifies which data element name will
have its type changed to COMPUTE.
Generic specification of elements is
not allowed.
STATEMENT EXAMPLES
*
* BUSYTIME IS ASSUMED TO BE IN THE INPUTSAS DATASET
*
COMPUTE BUSYTIME
EXP 01 BUSYTIME = SUM(BUSYCPU0-BUSYCPU3, 0);
DEPEND BUSYCPU0 BUSYCPU1 BUSYCPU2 BUSYCPU3