<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Exporting SAS dataset to MS Access:  Specify Numeric Field Size as Long Integer Instead of Double in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/502918#M72717</link>
    <description>&lt;P&gt;G'day.&lt;/P&gt;
&lt;P&gt;Appreciate any help you can give.&lt;/P&gt;
&lt;P&gt;I realized it saves space in MS Access if a numeric field has a length of 'Long Integer' instead of 'Double'.&lt;/P&gt;
&lt;P&gt;When I use the following code, SAS exports numeric&amp;nbsp;fields into MS Access as 'Double' instead of 'Long Integer'.&amp;nbsp; Is it possible to ask SAS to specify the field size as 'Long Integer' instead of 'Double'?&amp;nbsp; Thanks!&lt;/P&gt;
&lt;PRE&gt;PROC EXPORT DATA= WORK.want
OUTTABLE= "Want" 
DBMS=ACCESS REPLACE;
DATABASE="W:\Databases\&amp;amp;database"; 
RUN;&lt;/PRE&gt;</description>
    <pubDate>Tue, 09 Oct 2018 21:59:29 GMT</pubDate>
    <dc:creator>jcis7</dc:creator>
    <dc:date>2018-10-09T21:59:29Z</dc:date>
    <item>
      <title>Exporting SAS dataset to MS Access:  Specify Numeric Field Size as Long Integer Instead of Double</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/502918#M72717</link>
      <description>&lt;P&gt;G'day.&lt;/P&gt;
&lt;P&gt;Appreciate any help you can give.&lt;/P&gt;
&lt;P&gt;I realized it saves space in MS Access if a numeric field has a length of 'Long Integer' instead of 'Double'.&lt;/P&gt;
&lt;P&gt;When I use the following code, SAS exports numeric&amp;nbsp;fields into MS Access as 'Double' instead of 'Long Integer'.&amp;nbsp; Is it possible to ask SAS to specify the field size as 'Long Integer' instead of 'Double'?&amp;nbsp; Thanks!&lt;/P&gt;
&lt;PRE&gt;PROC EXPORT DATA= WORK.want
OUTTABLE= "Want" 
DBMS=ACCESS REPLACE;
DATABASE="W:\Databases\&amp;amp;database"; 
RUN;&lt;/PRE&gt;</description>
      <pubDate>Tue, 09 Oct 2018 21:59:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/502918#M72717</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2018-10-09T21:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS Access:  Specify Numeric Field Size as Long Integer Instead of Doubl</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/502922#M72718</link>
      <description>&lt;P&gt;This link documents the default data type conversions:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0h4i25zq3t58en1lgr8jjx1rads.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=n0h4i25zq3t58en1lgr8jjx1rads.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given Long Integer is not listed you would need to use the DBTYPE dataset option to specify such a conversion:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p1dqaq7ub1cm1pn1ow3x9qkmkxe8.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;https://documentation.sas.com/?docsetId=acreldb&amp;amp;docsetTarget=p1dqaq7ub1cm1pn1ow3x9qkmkxe8.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 22:17:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/502922#M72718</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-10-09T22:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS Access:  Specify Numeric Field Size as Long Integer Instead of Doubl</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/502933#M72719</link>
      <description>Appreciate your help!  For the example I copied and pasted from one link you included, I've a few questions:&lt;BR /&gt;&lt;BR /&gt;1)       If I wanted the type to be long integer, do I use LONGINT  instead of SMALLINT?&lt;BR /&gt;&lt;BR /&gt;2)      What does the '9(5)' mean?&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Example 3: Specify a Data Type for a Column in a New Table&lt;BR /&gt;This example creates a new Teradata table, NEWEMPLOYEES, and specifies a data type and attributes for the EMPNO column. The example encloses the Teradata type and attribute information in double quotation marks. Single quotation marks conflict with single quotation marks that the Teradata FORMAT attribute requires. If you use single quotation marks, SAS returns syntax error messages.&lt;BR /&gt;data mydblib.newemployees(dbtype= (empno="SMALLINT FORMAT '9(5)'&lt;BR /&gt;     CHECK (empno &amp;gt;= 100 AND empno &amp;lt;= 2000)"));&lt;BR /&gt;set mydblib.employees;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 09 Oct 2018 22:59:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/502933#M72719</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2018-10-09T22:59:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS Access:  Specify Numeric Field Size as Long Integer Instead of Doubl</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/502947#M72720</link>
      <description>&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 00:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/502947#M72720</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-10-10T00:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS Access:  Specify Numeric Field Size as Long Integer Instead of Doubl</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/504404#M72762</link>
      <description>&lt;P&gt;Thank you! One last question:&amp;nbsp; Is there anyway to change it in an existing table?&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 17:56:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/504404#M72762</guid>
      <dc:creator>jcis7</dc:creator>
      <dc:date>2018-10-15T17:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting SAS dataset to MS Access:  Specify Numeric Field Size as Long Integer Instead of Doubl</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/504542#M72764</link>
      <description>&lt;P&gt;This isn't really a SAS question. I suggest you Google Microsoft Access modify table column type.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2018 23:35:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Exporting-SAS-dataset-to-MS-Access-Specify-Numeric-Field-Size-as/m-p/504542#M72764</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2018-10-15T23:35:32Z</dc:date>
    </item>
  </channel>
</rss>

