SAMPLEFILE Subcommand (CSSELECT command)
SAMPLEFILE is used to write sampled units to an external file or dataset. Datasets
are available during the current session but are not available in
subsequent sessions unless you explicitly save them as data files.
- The external file or dataset contains sampled cases only. By default, all variables in the active dataset are copied to the external file or dataset.
- If
SAMPLEFILEis specified, data are not written to the active dataset. -
SAMPLEFILEmust be used if with-replacement sampling is specified in the plan file. Otherwise, an error is generated. -
KEEPandDROPcan be used simultaneously; the effect is cumulative. An error occurs if you specify a variable already named on a previousDROPor one not named on a previousKEEP.