<?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: SAS create a paremeter from a user define parameter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-create-a-paremeter-from-a-user-define-parameter/m-p/469517#M120129</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let mon = 1804;

data out;
 format tar yymmdd10.;
 tar = intnx('month',input("&amp;amp;mon",yymmn4.),-12,'end');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
    <pubDate>Tue, 12 Jun 2018 06:12:16 GMT</pubDate>
    <dc:creator>FredrikE</dc:creator>
    <dc:date>2018-06-12T06:12:16Z</dc:date>
    <item>
      <title>SAS create a paremeter from a user define parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-create-a-paremeter-from-a-user-define-parameter/m-p/469511#M120125</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Let's say that a user define &amp;nbsp;a parameter&lt;/P&gt;&lt;P&gt;%let mon=1804;&lt;/P&gt;&lt;P&gt;(meaning April 2018)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want that SAS will create automatically a new parameter called tar that get value &amp;nbsp;'30APR2017'd (end of month after deduct 12 months from mon parameter)&lt;/P&gt;&lt;P&gt;How can I do it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ronein&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 05:16:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-create-a-paremeter-from-a-user-define-parameter/m-p/469511#M120125</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-06-12T05:16:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS create a paremeter from a user define parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-create-a-paremeter-from-a-user-define-parameter/m-p/469517#M120129</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let mon = 1804;

data out;
 format tar yymmdd10.;
 tar = intnx('month',input("&amp;amp;mon",yymmn4.),-12,'end');
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;//Fredrik&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 06:12:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-create-a-paremeter-from-a-user-define-parameter/m-p/469517#M120129</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2018-06-12T06:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS create a paremeter from a user define parameter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-create-a-paremeter-from-a-user-define-parameter/m-p/469533#M120132</link>
      <description>&lt;P&gt;The question is why you need two macro variables for this.&amp;nbsp; You have stated you have one macro variable with a timepoint, and you know the logic to get end of month date from that, so why store that second one in a macro variable, just apply the logic where you need it.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jun 2018 08:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-create-a-paremeter-from-a-user-define-parameter/m-p/469533#M120132</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-06-12T08:00:06Z</dc:date>
    </item>
  </channel>
</rss>

