STAGES Keyword (CSSELECT command)

STAGES specifies the scope of execution.

  • By default, all stages defined in the sampling plan are executed. STAGES is used to limit execution to specific stages of the design.
  • Specify one or more stages. The list can include up to three integer values—for example, STAGES=1 2 3. If two or more values are provided, they must be consecutive. An error occurs if a stage is specified that does not correspond to a stage in the plan file.
  • If the sample plan specifies a previous weight variable, it is used in the first stage of the plan.
  • When executing latter stages of a multistage sampling design in which the earlier stages have already been sampled, CSSELECT requires the cumulative sampling weights of the last stage sampled, in order to compute the correct final sampling weights for the whole design. For example, if you have executed the first two stages of a three-stage design and saved the second-stage cumulative weights to SampleWeightCumulative_2_, when you sample the third stage of the design, the active dataset must contain SampleWeightCumulative_2_ to compute the final sampling weights.