<?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 Error using instream feature for input parameters with SAS Excel Add-in in Microsoft Integration with SAS</title>
    <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Error-using-instream-feature-for-input-parameters-with-SAS-Excel/m-p/533044#M2339</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use SAS Add-in for Excel with a stored process having one input parameter. My customer would like the ability to enter multiple input parameters at a time (i.e. copy and paste 30 SSNs at once instead of entering one at a time with the input parameter box).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I discovered that I can use the instream feature with the stored process. I've got it set up so that the add-in allows me to select the list of SSNs - but then this error arises:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SSNLIST not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI describe error: Microsoft ODBC SQL Server Driver SQL Server Invalid column name '&amp;amp;SSNList'. : Microsoft ODBC SQL Server Driver SQL Server Statement(s) could not be prepared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my stored process code:&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;libname Instr xml;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data work.SSNList;&lt;BR /&gt;&amp;nbsp; set Instr.&amp;amp;_webin_sasname;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to odbc ("dsn=SQL server DW; Trusted_Connection=yes; database=DW");&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select * from connection to odbc&lt;BR /&gt;(SELECT t1.IP_Key,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.client_address,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.createddate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.confirm_num,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; t1.ssn,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM Test1.XXX_Address_VW t1&lt;BR /&gt;&amp;nbsp; WHERE t1.SSN IN ("&amp;amp;SSNList")&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;disconnect from odbc;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that the error is with "&amp;amp;SSNList" - but what should&amp;nbsp;it&amp;nbsp;be&amp;nbsp;to use the instream feature?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any suggestions.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 19:49:24 GMT</pubDate>
    <dc:creator>kjarvis</dc:creator>
    <dc:date>2019-02-05T19:49:24Z</dc:date>
    <item>
      <title>Error using instream feature for input parameters with SAS Excel Add-in</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Error-using-instream-feature-for-input-parameters-with-SAS-Excel/m-p/533044#M2339</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to use SAS Add-in for Excel with a stored process having one input parameter. My customer would like the ability to enter multiple input parameters at a time (i.e. copy and paste 30 SSNs at once instead of entering one at a time with the input parameter box).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I discovered that I can use the instream feature with the stored process. I've got it set up so that the add-in allows me to select the list of SSNs - but then this error arises:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference SSNLIST not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: CLI describe error: Microsoft ODBC SQL Server Driver SQL Server Invalid column name '&amp;amp;SSNList'. : Microsoft ODBC SQL Server Driver SQL Server Statement(s) could not be prepared.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my stored process code:&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;libname Instr xml;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data work.SSNList;&lt;BR /&gt;&amp;nbsp; set Instr.&amp;amp;_webin_sasname;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;connect to odbc ("dsn=SQL server DW; Trusted_Connection=yes; database=DW");&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;select * from connection to odbc&lt;BR /&gt;(SELECT t1.IP_Key,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.client_address,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.createddate,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.confirm_num,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; t1.ssn,&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM Test1.XXX_Address_VW t1&lt;BR /&gt;&amp;nbsp; WHERE t1.SSN IN ("&amp;amp;SSNList")&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;disconnect from odbc;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know that the error is with "&amp;amp;SSNList" - but what should&amp;nbsp;it&amp;nbsp;be&amp;nbsp;to use the instream feature?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any suggestions.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 19:49:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Error-using-instream-feature-for-input-parameters-with-SAS-Excel/m-p/533044#M2339</guid>
      <dc:creator>kjarvis</dc:creator>
      <dc:date>2019-02-05T19:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error using instream feature for input parameters with SAS Excel Add-in</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Error-using-instream-feature-for-input-parameters-with-SAS-Excel/m-p/533112#M2340</link>
      <description>&lt;P&gt;I should have probably used the words "input stream" instead of "instream". Sorry for any confusion!&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 00:13:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Error-using-instream-feature-for-input-parameters-with-SAS-Excel/m-p/533112#M2340</guid>
      <dc:creator>kjarvis</dc:creator>
      <dc:date>2019-02-06T00:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error using instream feature for input parameters with SAS Excel Add-in</title>
      <link>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Error-using-instream-feature-for-input-parameters-with-SAS-Excel/m-p/612275#M2462</link>
      <description>&lt;P&gt;The data from your input stream is stored in a dataset, not a macro variable.&lt;/P&gt;
&lt;P&gt;When you add an ampersand - &amp;amp;SSNList - you are referencing a macro variable, which in your case doesn't exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can alter your code so that the filter selects all the contents of your dataset, SSNList.&lt;/P&gt;
&lt;P&gt;One way is by editing your where statement with a subquery like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE t1.SSN IN (select [insert name of your SSN column from the input stream] from SSNList)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Don't forget to include the headers in your input stream, when you specify the range in Excel.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternately you can do it with a join:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;FROM Test1.XXX_Address_VW t1 left join SSNList t2 on 
t1.SSN=t2.[insert name of your SSN column from the input stream]&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Dec 2019 00:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Microsoft-Integration-with-SAS/Error-using-instream-feature-for-input-parameters-with-SAS-Excel/m-p/612275#M2462</guid>
      <dc:creator>sustagens</dc:creator>
      <dc:date>2019-12-17T00:33:48Z</dc:date>
    </item>
  </channel>
</rss>

