<?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 Which delimiter to use when scanning &amp;amp;SYSPBUFF? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307526#M270628</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came across a code that sequentially takes a string from a list of strings (&amp;amp;syspbuff) separated by a "," or " ".&lt;/P&gt;
&lt;P&gt;but I don't quite figure out why the delimiters should be&amp;nbsp;&lt;SPAN&gt;%str(%,(,%))) &amp;nbsp; ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let data_input = %scan(&amp;amp;syspbuff,1,%str(%,(,%))));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Oct 2016 13:29:39 GMT</pubDate>
    <dc:creator>paulga</dc:creator>
    <dc:date>2016-10-27T13:29:39Z</dc:date>
    <item>
      <title>Which delimiter to use when scanning &amp;SYSPBUFF?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307526#M270628</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I came across a code that sequentially takes a string from a list of strings (&amp;amp;syspbuff) separated by a "," or " ".&lt;/P&gt;
&lt;P&gt;but I don't quite figure out why the delimiters should be&amp;nbsp;&lt;SPAN&gt;%str(%,(,%))) &amp;nbsp; ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let data_input = %scan(&amp;amp;syspbuff,1,%str(%,(,%))));&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 13:29:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307526#M270628</guid>
      <dc:creator>paulga</dc:creator>
      <dc:date>2016-10-27T13:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: code help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307586#M270629</link>
      <description>&lt;P&gt;If &amp;amp;syspbuff contains commas, this will fail anyway, as the first comma will be interpreted as a parameter separator for the %scan function.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What do you (or the previous programmer) try to achieve with this?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 08:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307586#M270629</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-10-27T08:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Which delimiter to use when scanning &amp;SYSPBUFF?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307645#M270630</link>
      <description>&lt;P&gt;Are you passing values to the macro that include ( or ) as part of the value?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 14:10:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307645#M270630</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-27T14:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: code help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307719#M270631</link>
      <description>&lt;P&gt;Thanks for reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The macro uses&amp;nbsp;&lt;STRONG&gt;parmbuff&amp;nbsp;&lt;/STRONG&gt;option. &amp;amp;syspbuff is&amp;nbsp;something like: (input_data, output_data, event_indicator, input_var)&lt;/P&gt;&lt;P&gt;among the parameters, the input_var itself is a list of variables separated by ",".&amp;nbsp;&lt;/P&gt;&lt;P&gt;That line of code sequentially takes these parameters one by one. so the %scan function should use delimiters including , and left and right parentheses. I cannot figure out why the delimiter portion is written that way.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 18:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307719#M270631</guid>
      <dc:creator>paulga</dc:creator>
      <dc:date>2016-10-27T18:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: code help</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307736#M270632</link>
      <description>&lt;P&gt;You may want to show 1) and example of how the macro is called actually called and if any of the parameters are macro variables what each of those macro variables resolve to at the time the macro is called. 3) It may be a good idea to show the entire macro code as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Imbedded special characters and for macro parameters comma is a special character can be touchy.&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2016 19:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Which-delimiter-to-use-when-scanning-amp-SYSPBUFF/m-p/307736#M270632</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-27T19:03:00Z</dc:date>
    </item>
  </channel>
</rss>

