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.
Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.
If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website.
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.