<?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: Macro quoted string syntax (consecutive commas) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-quoted-string-syntax-consecutive-commas/m-p/480533#M124203</link>
    <description>&lt;P&gt;The commas indicate that when %DTC was defined, it was designed to hold three parameters.&amp;nbsp; When calling the macro, the values supplied are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1st parameter = datc (or visdatc)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2nd parameter = (null string)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3rd parameter = pendtc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The extra comma holds the parameters in place.&amp;nbsp; Without it, macro language would think that the second parameter should be pendtc&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2018 17:07:08 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2018-07-23T17:07:08Z</dc:date>
    <item>
      <title>Macro quoted string syntax (consecutive commas)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-quoted-string-syntax-consecutive-commas/m-p/480511#M124199</link>
      <description>&lt;P&gt;What is the function of the double commas (,,) in the code below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data dm6a;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set rawdata.dob rawdata.xds(where=(datc^=''));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; length pendtc $19.;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if datc^= '' then do; %dtc(datc,,pendtc); end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if visdatc ^= '' then do; %dtc(visdatc,,pendtc); end;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else do; %dtc(visdatc,,pendtc); end;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 16:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-quoted-string-syntax-consecutive-commas/m-p/480511#M124199</guid>
      <dc:creator>_Grove_</dc:creator>
      <dc:date>2018-07-23T16:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Macro quoted string syntax (consecutive commas)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-quoted-string-syntax-consecutive-commas/m-p/480533#M124203</link>
      <description>&lt;P&gt;The commas indicate that when %DTC was defined, it was designed to hold three parameters.&amp;nbsp; When calling the macro, the values supplied are:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1st parameter = datc (or visdatc)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2nd parameter = (null string)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3rd parameter = pendtc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The extra comma holds the parameters in place.&amp;nbsp; Without it, macro language would think that the second parameter should be pendtc&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 17:07:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-quoted-string-syntax-consecutive-commas/m-p/480533#M124203</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-07-23T17:07:08Z</dc:date>
    </item>
  </channel>
</rss>

