Order of MSI Statements.

Document ID : KB000027745
Last Modified Date : 14/02/2018
Show Technical Document Details
  1. MSI Options Statement (MSIOPTS)

  2. Input Dataset Statement (INPUTSAS)

    • INPUTMODEL

  3. Variable Rename Statement (Rename)

  4. Required Data Element Definition

    • COMMON

    • ENDTS

    • STARTTS

    • ORGSYSID

  5. Common Variable Exit Statement (COMMONEXIT)

  6. Data Type Definition Statements

    • MIN/MINIMUM and MAX/MAXIMUM

    • RETAIN

    • Compute

    • AVG/AVERAGE and PCT/PERCENT

  7. Initialization Statement (INITIALIZE)

    • INITIALIZE

    • ALIAS

  8. Sort Sequence Specification (Sequence)

  9. Data Element Retention Statement (KEEP , DROP)

  10. Timespan Modification Statements (DETAIL, DAYS, WEEKS, MONTHS, YEARS)

    • SEQUENCE

    • AFTERSEQUENCE

    • APPENDSEQUENCE

    • KEEP/DROP
  • Note: The AVERAGE/COMPUTE/RETAIN/MIN/MAX/PERCENT Statements MUST be BEFORE the INITIALIZE (and/or ALIAS) Statement(s).