<?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 49: LINE and COLUMN cannot be determined. when creating a macro variable with proc sql in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/49-LINE-and-COLUMN-cannot-be-determined-when-creating-a-macro/m-p/449191#M113027</link>
    <description>&lt;P&gt;So, I am trying to create a macro variable to store a list of codes that I will use in an in statement, but it is missing the first and last quotation mark which I will add later, but just trying to %put &amp;amp;icd causes the line and column error.&amp;nbsp; Any suggestions?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;select icd_code into :icd separated by "','" from ds ;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let pq = %str(%(%');&lt;BR /&gt;%let qp = %str(%'%));&lt;/P&gt;
&lt;P&gt;if icd in&amp;nbsp; &amp;amp;pq&amp;amp;icd&amp;amp;qp then etc. etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Mar 2018 23:37:47 GMT</pubDate>
    <dc:creator>proctice</dc:creator>
    <dc:date>2018-03-27T23:37:47Z</dc:date>
    <item>
      <title>49: LINE and COLUMN cannot be determined. when creating a macro variable with proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/49-LINE-and-COLUMN-cannot-be-determined-when-creating-a-macro/m-p/449191#M113027</link>
      <description>&lt;P&gt;So, I am trying to create a macro variable to store a list of codes that I will use in an in statement, but it is missing the first and last quotation mark which I will add later, but just trying to %put &amp;amp;icd causes the line and column error.&amp;nbsp; Any suggestions?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;BR /&gt;select icd_code into :icd separated by "','" from ds ;&lt;BR /&gt;quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%let pq = %str(%(%');&lt;BR /&gt;%let qp = %str(%'%));&lt;/P&gt;
&lt;P&gt;if icd in&amp;nbsp; &amp;amp;pq&amp;amp;icd&amp;amp;qp then etc. etc.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:37:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/49-LINE-and-COLUMN-cannot-be-determined-when-creating-a-macro/m-p/449191#M113027</guid>
      <dc:creator>proctice</dc:creator>
      <dc:date>2018-03-27T23:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: 49: LINE and COLUMN cannot be determined. when creating a macro variable with proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/49-LINE-and-COLUMN-cannot-be-determined-when-creating-a-macro/m-p/449193#M113028</link>
      <description>&lt;P&gt;Make it easy instead of making it difficult:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc sql;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select quote(icd_code) into :icd separated by ' ' from ds ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;quit;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;if icd in&amp;nbsp; (&amp;amp;icd) then&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 00:03:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/49-LINE-and-COLUMN-cannot-be-determined-when-creating-a-macro/m-p/449193#M113028</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-28T00:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: 49: LINE and COLUMN cannot be determined. when creating a macro variable with proc sql</title>
      <link>https://communities.sas.com/t5/SAS-Programming/49-LINE-and-COLUMN-cannot-be-determined-when-creating-a-macro/m-p/449204#M113032</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Or&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;proc sql;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;select quote(trim(icd_code)) into :icd separated by ' ' from ds ;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;SPAN&gt;quit;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 02:50:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/49-LINE-and-COLUMN-cannot-be-determined-when-creating-a-macro/m-p/449204#M113032</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2018-03-28T02:50:48Z</dc:date>
    </item>
  </channel>
</rss>

