Hi All.
I have an Excel file with time values, some of which exceed 24 hours (for example 113:55:00)
I am unable to import these values to SAS correctly (value is changed to 17:55:00)
I tried time20 informat. Any help would be appreciated. Thanks
SAS Code
libname a excel "&a.\new מתוקן חומר לסטטיסטיקאית 15.8.20.xlsx";
data fix;
set a."Sheet1$"N(dbsastype=(hours_from_admitance_to_surgery='TIME(20)'));
rename _____=Complaint ______________=ClinicalImp;
format hours_from_admitance_to_surgery time20.;
run;
שלום @Tz
מאחר וזו קבוצת משתמשי SAS בישראל אני מניח שזה בסדר לענות בעברית.
האם ניסית (כמעקף) לייבא את האקסל באמצעות PROC IMPORT במקום libname?
אייל
תודה אייל.
ניסיתי Proc Import.
לא עבד
שלום @Tz
בדקתי הרגע אצלי ונראה שזה כן עובד. אני מצרף את האקסל שיצרתי + קוד SAS שבאמצעותו ייבאתי את האקסל.
proc import file="c:\temp\book1.xlsx" dbms="xlsx" out=work.book1 replace;
run;
אייל
Import did not work on my file.
I saved it as csv - problem solved
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.