DATA Subcommand (GET SAS command)
DATA specifies the file that contains the SAS dataset to be read.
- DATA is required and must be the first specification on GET SAS.
- The file specification varies from operating system to operating system. File specifications should be enclosed in quotes.
- The optional DSET keyword on DATA determines which dataset within the specified SAS file is to be read. The default is the first dataset.
DSET (dataset) . Dataset to be read. Specify the name of the dataset in parentheses. If the specified dataset does not exist in the SAS file, GET SAS displays a message informing you that the dataset was not found.
Example
GET SAS DATA='/data/elect.sd7' DSET(Y1948).
- The SAS file elect.sd7 is opened and the dataset named Y1948 is used to build the active dataset for the session.