G'day.
Appreciate any help you can give.
I realized it saves space in MS Access if a numeric field has a length of 'Long Integer' instead of 'Double'.
When I use the following code, SAS exports numeric fields into MS Access as 'Double' instead of 'Long Integer'. Is it possible to ask SAS to specify the field size as 'Long Integer' instead of 'Double'? Thanks!
PROC EXPORT DATA= WORK.want OUTTABLE= "Want" DBMS=ACCESS REPLACE; DATABASE="W:\Databases\&database"; RUN;
I suggest you give it a try with LONGINT and see how you get on. 9(5) means a decimal with 5 decimal places and a total length of 9 digits.
This link documents the default data type conversions:
Given Long Integer is not listed you would need to use the DBTYPE dataset option to specify such a conversion:
I suggest you give it a try with LONGINT and see how you get on. 9(5) means a decimal with 5 decimal places and a total length of 9 digits.
Thank you! One last question: Is there anyway to change it in an existing table?
This isn't really a SAS question. I suggest you Google Microsoft Access modify table column type.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.