DATASET NAME
The DATASET
commands (DATASET NAME
,
DATASET ACTIVATE
, DATASET DECLARE
, DATASET COPY
,
DATASET CLOSE
) provide the ability to have multiple data sources open at the same
time and control which open data source is active at any point in the session.
DATASET NAME name
[WINDOW={ASIS }]
{FRONT}
This command takes effect immediately. It does not read the active dataset or execute pending transformations. See the topic Command Order for more information.
Release History
Release 14.0
- Command introduced.
Example
GET FILE='/data/mydata.sav'.
DATASET NAME file1.
SORT CASES BY ID.
GET FILE '/data/moredata.sav'
SORT CASES BY ID.
DATASET NAME file2.
GET DATA /TYPE=XLS
/FILE='/data/exceldata.xls'.
SORT CASES BY ID.
MATCH FILES FILE=*
/FILE=file1
/FILE=file2
/BY ID.
SAVE OUTFILE='/data/mergedata.sav'.