Chapter Contents |
Previous |
Next |
The IMPORT Procedure |
Featured in: | All examples |
PROC IMPORT
DATAFILE="filename" | TABLE="tablename" OUT=SAS-data-set <DBMS=identifier><REPLACE>; |
Required Arguments |
Featured in: | Importing a Delimited External File and Importing an Excel Spreadsheet |
Requirement: | When you import a DBMS table, you must specify the DBMS= option. |
Featured in: | Importing a Microsoft Access Table |
Featured in: | All examples |
Options |
To import a DBMS table, you must specify DBMS= using a valid database product. For example, DBMS=ACCESS imports a Microsoft Access table.
The DBMS= specification can include the values listed in the following table:
Identifier | Input Data Source | Extension |
---|---|---|
ACCESS | Microsoft Access database | .MDB |
DBF | dBASE file | .DBF |
WK1 | Lotus 1 spreadsheet | .WK1 |
WK3 | Lotus 3 spreadsheet | .WK3 |
WK4 | Lotus 4 spreadsheet | .WK4 |
EXCEL | Excel Version 4 or 5 spreadsheet | .XLS |
EXCEL4 | Excel Version 4 spreadsheet | .XLS |
EXCEL5 | Excel Version 5 spreadsheet | .XLS |
EXCEL97 | Excel 97 spreadsheet | .XLS |
DLM | delimited file (default delimiter is a blank) | .* |
CSV | delimited file (comma-separated values) | .CSV |
TAB | delimited file (tab-delimited values) | .TXT |
Restriction: | The data sources available to you depend on the SAS/ACCESS products that you have licensed. If you do not have any SAS/ACCESS products licensed, then the only types of data source files available to you are .CSV, .TXT, and delimited files. |
Restriction: | The OS/2 operating environment does not support Excel 5 and Excel 97 spreadsheets. |
Featured in: | Importing a Delimited External File and Importing a Microsoft Access Table |
Featured in: | Importing a Delimited External File |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.