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.
Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.
Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.
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.