<?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: mod function in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/mod-function/m-p/173589#M264489</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 24 Aug 2014 15:21:48 GMT</pubDate>
    <dc:creator>Steelers_In_DC</dc:creator>
    <dc:date>2014-08-24T15:21:48Z</dc:date>
    <item>
      <title>mod function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mod-function/m-p/173586#M264486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to back up a file using something like the mod function in the dataset name.&amp;nbsp; Is there a way to name a file:&lt;/P&gt;&lt;P&gt;data backup_&amp;amp;odd_even;&lt;/P&gt;&lt;P&gt;set test;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to have the backup for a month and every other month have it written over but I do not know how to name the &amp;amp;odd_even variable to be a 1 or a 2 based on the month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 14:19:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mod-function/m-p/173586#M264486</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-08-24T14:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: mod function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mod-function/m-p/173587#M264487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the MOD() function.&amp;nbsp; Easier if you name them 0 and 1.&lt;/P&gt;&lt;P&gt;data backup_%sysfunc(mod(%sysfunc(today(),month.),2));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 14:52:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mod-function/m-p/173587#M264487</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-08-24T14:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: mod function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mod-function/m-p/173588#M264488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have the date as a macro variable you could create&lt;/P&gt;&lt;P&gt;%sysfunc(mod(%sysfunc(month(&amp;amp;Date)), 2))&lt;/P&gt;&lt;P&gt;for a 0 , 1 even - odd &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;or %eval(2 - [the expression above]) to have 1, 2 with 1 odd , 2 even&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Richard&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 14:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mod-function/m-p/173588#M264488</guid>
      <dc:creator>RichardinOz</dc:creator>
      <dc:date>2014-08-24T14:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: mod function</title>
      <link>https://communities.sas.com/t5/SAS-Programming/mod-function/m-p/173589#M264489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Aug 2014 15:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/mod-function/m-p/173589#M264489</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2014-08-24T15:21:48Z</dc:date>
    </item>
  </channel>
</rss>

