<?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 Getting an error when parsing a macro value in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Getting-an-error-when-parsing-a-macro-value/m-p/967972#M376470</link>
    <description>&lt;P&gt;I want to parse a macro value with text, spaces and slashes separated by comma delimiters.&amp;nbsp; &amp;nbsp;I got the code for the second %PUT statement from&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/How-to-scan-comma-delimited-macro-variable-list/td-p/131961" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/How-to-scan-comma-delimited-macro-variable-list/td-p/131961&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I'm getting an error message.&amp;nbsp; &amp;nbsp;How can I rectify?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;27 %put &amp;amp;sel_ing4;&lt;BR /&gt;DROSPIRENONE / ETHINYL ESTRADIOL / LEVOMEFOLATE CALCIUM, ETHINYL ESTRADIOL / ETHYNODIOL DIACETATE, ETHINYL ESTRADIOL /&lt;BR /&gt;LEVONORGESTREL, ETHINYL ESTRADIOL / NORETHINDRONE, ETHINYL ESTRADIOL / NORETHINDRONE ACETATE&lt;BR /&gt;28 %put %scan(%superQ(&amp;amp;Sel_Ing4),1,%str(,));&lt;BR /&gt;ERROR: Invalid symbolic variable name DROSPIRENONE ETHINYL ESTRADIOL / LEVOMEFOLATE CALCIUM, ETHINYL ESTRADIOL / ETHYNODIOL&lt;BR /&gt;DIACETATE, ETHINYL ESTRADIOL / LEVONORGESTREL, ETHINYL ESTRADIOL / NORETHINDRONE, ETHINYL ESTRADIOL / NORETHINDRONE ACETATE.&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jun 2025 20:30:55 GMT</pubDate>
    <dc:creator>Batman</dc:creator>
    <dc:date>2025-06-02T20:30:55Z</dc:date>
    <item>
      <title>Getting an error when parsing a macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-an-error-when-parsing-a-macro-value/m-p/967972#M376470</link>
      <description>&lt;P&gt;I want to parse a macro value with text, spaces and slashes separated by comma delimiters.&amp;nbsp; &amp;nbsp;I got the code for the second %PUT statement from&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/How-to-scan-comma-delimited-macro-variable-list/td-p/131961" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/How-to-scan-comma-delimited-macro-variable-list/td-p/131961&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However, I'm getting an error message.&amp;nbsp; &amp;nbsp;How can I rectify?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;27 %put &amp;amp;sel_ing4;&lt;BR /&gt;DROSPIRENONE / ETHINYL ESTRADIOL / LEVOMEFOLATE CALCIUM, ETHINYL ESTRADIOL / ETHYNODIOL DIACETATE, ETHINYL ESTRADIOL /&lt;BR /&gt;LEVONORGESTREL, ETHINYL ESTRADIOL / NORETHINDRONE, ETHINYL ESTRADIOL / NORETHINDRONE ACETATE&lt;BR /&gt;28 %put %scan(%superQ(&amp;amp;Sel_Ing4),1,%str(,));&lt;BR /&gt;ERROR: Invalid symbolic variable name DROSPIRENONE ETHINYL ESTRADIOL / LEVOMEFOLATE CALCIUM, ETHINYL ESTRADIOL / ETHYNODIOL&lt;BR /&gt;DIACETATE, ETHINYL ESTRADIOL / LEVONORGESTREL, ETHINYL ESTRADIOL / NORETHINDRONE, ETHINYL ESTRADIOL / NORETHINDRONE ACETATE.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 20:30:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-an-error-when-parsing-a-macro-value/m-p/967972#M376470</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2025-06-02T20:30:55Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error when parsing a macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-an-error-when-parsing-a-macro-value/m-p/967973#M376471</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put %scan(%superQ(&amp;amp;Sel_Ing4),1,%str(,));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you need %bquote and not %superq&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 20:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-an-error-when-parsing-a-macro-value/m-p/967973#M376471</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-06-02T20:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: Getting an error when parsing a macro value</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Getting-an-error-when-parsing-a-macro-value/m-p/967974#M376472</link>
      <description>&lt;P&gt;No, the delimiter is actually a comma.&amp;nbsp; &amp;nbsp; This is a list of active ingredient groups for the same drugs and the producer of the original data chose to join them with slashes.&amp;nbsp; &amp;nbsp;It originally came in a single variable in the following format (just showing two cells).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DROSPIRENONE / ETHINYL ESTRADIOL / LEVOMEFOLATE CALCIUM&lt;BR /&gt;ETHINYL ESTRADIOL / NORGESTIMATE&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 20:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Getting-an-error-when-parsing-a-macro-value/m-p/967974#M376472</guid>
      <dc:creator>Batman</dc:creator>
      <dc:date>2025-06-02T20:43:20Z</dc:date>
    </item>
  </channel>
</rss>

