<?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: Inserting into a named range in an XLSX file in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Inserting-into-a-named-range-in-an-XLSX-file/m-p/282393#M1883</link>
    <description>&lt;P&gt;did you try the PCFILES libname options: MIXED=YES or&amp;nbsp; MIXED_DATA=YES or MIXED_DATATYPE ?&lt;/P&gt;&lt;P&gt;i found this &lt;A href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" target="_self"&gt;SUGI PDF&lt;/A&gt; a good guide to start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this help&lt;/P&gt;&lt;P&gt;let me know&lt;/P&gt;&lt;P&gt;have a nice day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MC&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jul 2016 12:10:01 GMT</pubDate>
    <dc:creator>MC1985</dc:creator>
    <dc:date>2016-07-06T12:10:01Z</dc:date>
    <item>
      <title>Inserting into a named range in an XLSX file</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Inserting-into-a-named-range-in-an-XLSX-file/m-p/275185#M1823</link>
      <description>&lt;P&gt;I'm trying to insert data a named range in an .xlsx file with the following code:&lt;BR /&gt;&lt;BR /&gt;libname MyXLSX PCFILES path="&amp;amp;SrcPath.\Alt_Rptg_Tree.xlsx" SCAN_TEXTSIZE=NO;&lt;BR /&gt;PROC SQL ;&lt;BR /&gt; INSERT INTO MyXLSX.Acct_Chkr&lt;BR /&gt;&amp;nbsp;&amp;nbsp; SELECT t1.Class_Description,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.Sub_Class_Description,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.Item_Description,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.Cost_Element_Num,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.Cost_Element_Description,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.Rptg_SubClass_Name,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.Rptg_SC_Order&lt;BR /&gt;&amp;nbsp;&amp;nbsp; FROM PERM.REF_CE_TREE t1;&lt;BR /&gt;QUIT; &lt;BR /&gt;&lt;BR /&gt;But, despite having the column attributes set to number in Excel (with Format Cells…), I get the following error:&lt;BR /&gt;ERROR: Value 4 on the SELECT clause does not match the data type of the corresponding column listed after the INSERT table name. &lt;BR /&gt;&lt;BR /&gt;When I view the properties of MyXLSX.Acct_Chkr they are all defined as char with $255 format.&lt;BR /&gt;&lt;BR /&gt;Is there any way either in SAS or Excel to force the columns to match the type in my data? &lt;BR /&gt; &lt;BR /&gt;(Using SAS9.4 through EG7.1 with a Windows server.)&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 13:44:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Inserting-into-a-named-range-in-an-XLSX-file/m-p/275185#M1823</guid>
      <dc:creator>DaveBirch</dc:creator>
      <dc:date>2016-06-04T13:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: Inserting into a named range in an XLSX file</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Inserting-into-a-named-range-in-an-XLSX-file/m-p/282393#M1883</link>
      <description>&lt;P&gt;did you try the PCFILES libname options: MIXED=YES or&amp;nbsp; MIXED_DATA=YES or MIXED_DATATYPE ?&lt;/P&gt;&lt;P&gt;i found this &lt;A href="http://www2.sas.com/proceedings/sugi31/024-31.pdf" target="_self"&gt;SUGI PDF&lt;/A&gt; a good guide to start.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope this help&lt;/P&gt;&lt;P&gt;let me know&lt;/P&gt;&lt;P&gt;have a nice day&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MC&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jul 2016 12:10:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Inserting-into-a-named-range-in-an-XLSX-file/m-p/282393#M1883</guid>
      <dc:creator>MC1985</dc:creator>
      <dc:date>2016-07-06T12:10:01Z</dc:date>
    </item>
  </channel>
</rss>

