<?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 Re: MS Access error when uploading SAS generated Excel output in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132450#M1345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; $63. is a format, i.e. the printed representation of your variable. It can be applied to a string of 2000 characters in which case it would display the first 63 characters. The only way to set the length of a string is when it is created or to create a new string and assign it a length.&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Sep 2013 18:41:24 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2013-09-09T18:41:24Z</dc:date>
    <item>
      <title>MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132449#M1344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&amp;nbsp; I am a new SAS user and have written relatively simple SAS programs to extract data into Excel files.&lt;/P&gt;&lt;P&gt;I am using SQL in the SAS program to get data from Oracle. &lt;/P&gt;&lt;P&gt;The data are output to a first SAS file, then to a second SAS file so I can assign the necessary variable names fo uplaod into Access.&lt;/P&gt;&lt;P&gt;I am using a proc export step to get the data into Excel files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Access is telling me that one or more character fields in the Excel files are too big for the Access table fields.&lt;/P&gt;&lt;P&gt;I have tried to use the TRIM function in a DATA step to get rid of any trailing blanks when creating the second SAS file but all the character fields are still being output as $63.&lt;/P&gt;&lt;P&gt;ANy suggestions would be greatly appreciated . . . &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 17:59:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132449#M1344</guid>
      <dc:creator>landgraf</dc:creator>
      <dc:date>2013-09-09T17:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132450#M1345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; $63. is a format, i.e. the printed representation of your variable. It can be applied to a string of 2000 characters in which case it would display the first 63 characters. The only way to set the length of a string is when it is created or to create a new string and assign it a length.&lt;/P&gt;&lt;P&gt;hth&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 18:41:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132450#M1345</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2013-09-09T18:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132451#M1346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So how do I make the field smaller so I can upload the data into the Access file?&lt;/P&gt;&lt;P&gt;(The Access field is a text 4.)&lt;/P&gt;&lt;P&gt;Thanks, Anne&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Anne Landgraf&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 21:09:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132451#M1346</guid>
      <dc:creator>landgraf</dc:creator>
      <dc:date>2013-09-09T21:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132452#M1347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you creating your excel file from SAS? What is the length and format of the variable in SAS before the export?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS can connect directly to Access if you wanted to skip the Excel step.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 21:11:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132452#M1347</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-09-09T21:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132453#M1348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excel should not have any issue if your data is really ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This sounds to me like you tried to assign a numeric variable to character variable and allowed SAS to auto-convert a number into a character variable. When it does that it will right align the value into the character variable.&lt;/P&gt;&lt;P&gt;Look for note like this in you SAS log :&lt;/P&gt;&lt;P&gt;NOTE: Numeric values have been converted to character values ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Sep 2013 21:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132453#M1348</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-09-09T21:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132454#M1349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use a DATA step.&amp;nbsp; The incoming data is char 4, like so:&amp;nbsp; GBPF.&lt;/P&gt;&lt;P&gt;When I do a proc contents on the SAS file that is used to create the Excel file, all the char fields show as at least $63 format with a length of 63.&lt;/P&gt;&lt;P&gt;I tried the TRIM function and the SUBSTR function in the data step, but no change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to specify field types/lengths in the proc export step?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW:&amp;nbsp; We have been using Hyperion to do this with no problems so I don't think it's the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 13:59:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132454#M1349</guid>
      <dc:creator>landgraf</dc:creator>
      <dc:date>2013-09-10T13:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132455#M1350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom:&amp;nbsp; No message from SAS about converting data.&amp;nbsp; All char fields are created in SAS as at least 63 in length.&lt;/P&gt;&lt;P&gt;The field in question is char 4 and the data is like so:&amp;nbsp; GBTW.&lt;/P&gt;&lt;P&gt;The data should be fine - is coming from Oracle and we are using Hyperion software to do the deed every day until I get the programs converted to SAS.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 14:10:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132455#M1350</guid>
      <dc:creator>landgraf</dc:creator>
      <dc:date>2013-09-10T14:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132456#M1351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are you importing the data into Access? Is it a manual load using the import wizards or is it VBA code using a file format specification or other method?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As &lt;A __default_attr="255172" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://communities.sas.com/"&gt;&lt;/A&gt; suggested have you tried skipping excel altogether and loading directly with SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 14:36:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132456#M1351</guid>
      <dc:creator>esjackso</dc:creator>
      <dc:date>2013-09-10T14:36:13Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132457#M1352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would be surprises if they are what it is causing the trouble, but try removing the formats from the character variables.&amp;nbsp; Because your original data is coming from Oracle the character variables will have unneeded (unwanted) permanently attached formats.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set have ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; format _character_ ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Sep 2013 15:48:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132457#M1352</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2013-09-10T15:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132458#M1353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&amp;nbsp; I found out that the $63 and length 63 are coming from Oracle, not SAS.&lt;/P&gt;&lt;P&gt;I talked to someone in another dept here who showed me how to put SAS length and format statements in the SQL "Create Table" section.&lt;/P&gt;&lt;P&gt;Going to try this ASAP!&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 19:50:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132458#M1353</guid>
      <dc:creator>landgraf</dc:creator>
      <dc:date>2013-09-13T19:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: MS Access error when uploading SAS generated Excel output</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132459#M1354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom:&amp;nbsp; You pegged it.&lt;/P&gt;&lt;P&gt;I spoke with a colleague here who confirmed that the $63 and length 63 are coming from Oracle.&lt;/P&gt;&lt;P&gt;He showed me how tocorrect this in the SQL "Create table" section.&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;Anne&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2013 19:51:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/MS-Access-error-when-uploading-SAS-generated-Excel-output/m-p/132459#M1354</guid>
      <dc:creator>landgraf</dc:creator>
      <dc:date>2013-09-13T19:51:51Z</dc:date>
    </item>
  </channel>
</rss>

