to read as a date (and assign a date format for that variable that you like). But you could change the Informat to YYMMDD8. A "date" of 20140728 doesn't trigger the "guessing" rules of SAS to think of it as a date that a value like would. If a variable you thought was a date but gets read as a simple number (likely best32. (I typically use $20 for first and middle names and $30 for last but your data may differ). Your example data may have the longest value for a First Name to be 7 characters but you know that isn't likely to be long enough in other files, so increase the Informat and Format to a larger value such as $15. If I want to consider longer character values, a common item, consider what is read. If you thought it shoud be numeric and is character then you either have the Guessingrows value too small or something other than numeric values in the data. The Informats will tell you how SAS read a specific variable. There should be program with an infile statement describing the options used, Informat and Format statements, an Input statement and two lines related to checking if you have critical errors. I NEED SOME ADVICES TO IMPORT CORRECTLY THE FORMAT DATE TO SAS UNIVERSITY EDITION.īaller, i appreciate a lot your contribution, could you help me to learn this mwthodology please? if you could send me some information to or an example i will reproduce it.Ģ) Either use Proc Import code or the SAS file data import wizard for a CSV delimited file.
PROC IMPORT DATAFILE="/folders/myfolders/EXAMPLE.xls"
I have studied lots of tutorials talking about how to import correctly EXCEL files into SAS UNIERSITY EDITION, unfortunely all the trials were unsuccesfull, here i1ll show you thie tabe i have.