|
⇤ ← Revision 1 as of 2023-03-16 02:36:33
Size: 865
Comment:
|
Size: 941
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 2: | Line 2: |
A utility procedure for generating a data step that imports a data file. |
SAS Import
A utility procedure for generating a data step that imports a data file.
Usage
proc import datafile=FILEREF
out=LIBREF.TABLE
dbms=csv;
getnames=yes;
run;
GetNames Statement
Generally the GETNAMES statement should always be used. See above.
GuessingRows Statement
The IMPORT procedure guesses the format of each variable based on peaking ahead and observing values. This can lead to issues when numeric and character values are mixed. The best solution is usually the GUESSINGROWS statement.
proc import datafile=data_v2
out=work.raw
dbms=csv;
guessingrows=max;
run;GUESSINGROWS can be set to any positive integer or MAX.
If this also fails, consider copying the syntax generated by the IMPORT procedure and manually correcting it.
