Saturday, October 1, 2016

What is the syntax to import a file into SAS?

PROC IMPORT DATAFILE = 'filename' OUT = data-set
           DBMS = identifier REPLACE;

filename -- input file name (with complete path)
data-set -- destination sas data-set
identifier -- input file extension
REPLACE -- replace the dataset if it already exists.

No comments:

Post a Comment