PROC IMPORT in SAS: format issue
Salah
-
Véronique -
Véronique -
Hello,
How can I force SAS to keep the same variable format from Excel when using a PROC IMPORT?
In my Excel file, the ID variable is alphanumeric, but SAS considers it a numeric variable and then puts a dot for values containing a letter.??
PS. I am using version 8 of SAS (so I can't use the mixed=yes option).
Thank you for your help.
How can I force SAS to keep the same variable format from Excel when using a PROC IMPORT?
In my Excel file, the ID variable is alphanumeric, but SAS considers it a numeric variable and then puts a dot for values containing a letter.??
PS. I am using version 8 of SAS (so I can't use the mixed=yes option).
Thank you for your help.
3 réponses
There is the option mixed=yes which allows for the complete conversion to character.
There is also the option guessingrows = 50 to specify the number of rows to scan to identify the type of the variable.
There is also the option guessingrows = 50 to specify the number of rows to scan to identify the type of the variable.