<?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: What is the meaning of this? -date in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/What-is-the-meaning-of-this-date/m-p/884836#M1913</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290946"&gt;@bhca60&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yes it’s a macro. Thank you. Yes I had to type this since I didn’t want to use my work computer that’s why the quotes look like that and I forgot the ampersand.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, it's not a macro. It is a macro variable. Macros and macro variables are different things. Do not say macro variables are "a macro". Clear communication avoids confusion!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typing here in the SAS forums will not produce curly quotes. See --&amp;gt; &lt;FONT face="courier new,courier"&gt;"""""""&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typing in a word processor or something like PowerPoint produces the curly quotes. Don't use word processors or PowerPoint for typing SAS code.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 17:26:06 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2023-07-14T17:26:06Z</dc:date>
    <item>
      <title>What is the meaning of this? -date</title>
      <link>https://communities.sas.com/t5/SAS-Viya/What-is-the-meaning-of-this-date/m-p/884828#M1910</link>
      <description>I have a program I’m working on explaining to a client. What does &lt;BR /&gt;Days_total=SUM(“rpt_run_dt.”d, -date); mean?&lt;BR /&gt;Does it mean total number of days between report run date and date? What does the minus sign in front of date mean?</description>
      <pubDate>Fri, 14 Jul 2023 16:30:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/What-is-the-meaning-of-this-date/m-p/884828#M1910</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2023-07-14T16:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the meaning of this? -date</title>
      <link>https://communities.sas.com/t5/SAS-Viya/What-is-the-meaning-of-this-date/m-p/884831#M1911</link>
      <description>&lt;P&gt;The SUM function adds two (or more) values&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In this case, it adds the value of this date&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"&amp;amp;rpt_run_dt."d&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and the negative of the value of variable DATE. Essentially this is a subtraction, but because it is in the SUM function, a missing is treated as zero and then the SUM function does not return a missing if one of the values is missing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, those "curly" quotes in your code snippet will cause an error and should never be used. Use "straight" quotes as I did above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, I assume that rpt_run_dt is a macro variable even though you didn't use the &amp;amp; because if not, then this won't work either, the period immediately after rpt_run_dt will cause an error if it is not a macro variable.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Please type carefully!&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 16:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/What-is-the-meaning-of-this-date/m-p/884831#M1911</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-14T16:46:25Z</dc:date>
    </item>
    <item>
      <title>Re: What is the meaning of this? -date</title>
      <link>https://communities.sas.com/t5/SAS-Viya/What-is-the-meaning-of-this-date/m-p/884832#M1912</link>
      <description>Yes it’s a macro. Thank you. Yes I had to type this since I didn’t want to use my work computer that’s why the quotes look like that and I forgot the ampersand.</description>
      <pubDate>Fri, 14 Jul 2023 16:51:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/What-is-the-meaning-of-this-date/m-p/884832#M1912</guid>
      <dc:creator>bhca60</dc:creator>
      <dc:date>2023-07-14T16:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is the meaning of this? -date</title>
      <link>https://communities.sas.com/t5/SAS-Viya/What-is-the-meaning-of-this-date/m-p/884836#M1913</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/290946"&gt;@bhca60&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Yes it’s a macro. Thank you. Yes I had to type this since I didn’t want to use my work computer that’s why the quotes look like that and I forgot the ampersand.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No, it's not a macro. It is a macro variable. Macros and macro variables are different things. Do not say macro variables are "a macro". Clear communication avoids confusion!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typing here in the SAS forums will not produce curly quotes. See --&amp;gt; &lt;FONT face="courier new,courier"&gt;"""""""&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typing in a word processor or something like PowerPoint produces the curly quotes. Don't use word processors or PowerPoint for typing SAS code.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 17:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/What-is-the-meaning-of-this-date/m-p/884836#M1913</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-07-14T17:26:06Z</dc:date>
    </item>
  </channel>
</rss>

