<?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: defined parameter with plus in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480383#M124153</link>
    <description>&lt;P&gt;I am sorry,&lt;/P&gt;&lt;P&gt;I run it again and it is working well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2018 10:07:04 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2018-07-23T10:07:04Z</dc:date>
    <item>
      <title>defined parameter with plus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480347#M124138</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Based on 4 user defined parameter I want that SAS will create a new parameter .&lt;/P&gt;&lt;P&gt;%let v1=1806;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let v1=1805;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let v1=1803;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let v1=1712;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want that SAS will create a parameter called vector that will have value &amp;nbsp;1806+1805+1803+1712&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(plus delimiter between values)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If We write %put &amp;amp;vector. we need to &amp;nbsp;see in log &amp;nbsp;1806+1805+1803+1712&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 06:57:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480347#M124138</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-07-23T06:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: defined parameter with plus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480358#M124139</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;Based on 4 user defined parameter I want that SAS will create a new parameter .&lt;/P&gt;
&lt;P&gt;%let v1=1806;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let v1=1805;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let v1=1803;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;%let v1=1712;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I want that SAS will create a parameter called vector that will have value &amp;nbsp;1806+1805+1803+1712&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(plus delimiter between values)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If We write %put &amp;amp;vector. we need to &amp;nbsp;see in log &amp;nbsp;1806+1805+1803+1712&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Since you always use the same macro variable name, the previous values will be lost, and only 1712 will be stored in v1.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 07:38:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480358#M124139</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-07-23T07:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: defined parameter with plus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480364#M124143</link>
      <description>&lt;P&gt;Have you tried writing:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let vector = 1806+1805+1803+1712;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 08:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480364#M124143</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-07-23T08:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: defined parameter with plus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480371#M124147</link>
      <description>&lt;P&gt;Sorry&lt;/P&gt;&lt;P&gt;The input parameters are:&lt;/P&gt;&lt;P&gt;%let v1=1806;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let v2=1805;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let v3=1803;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let v4=1712;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Following code is not working&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%let v1=1806;&lt;BR /&gt;%let v2=1805;&lt;BR /&gt;%let v3=1803;&lt;BR /&gt;%let v4=1712;&lt;BR /&gt;%let vector =&amp;amp;v1.+&amp;amp;v2.+&amp;amp;v3.+&amp;amp;v4.;&lt;BR /&gt;%put &amp;amp;vector.;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 09:31:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480371#M124147</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-07-23T09:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: defined parameter with plus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480373#M124148</link>
      <description>&lt;PRE&gt;%let v1=1806;
%let v2=1805;
%let v3=1803;
%let v4=1712;
%let vector=%sysfunc(catx(+,&amp;amp;v1.,&amp;amp;v2.,&amp;amp;v3.,&amp;amp;v4.));
%put &amp;amp;vector.;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 09:39:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480373#M124148</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-07-23T09:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: defined parameter with plus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480374#M124149</link>
      <description>&lt;P&gt;"not working" is such an extremely descriptive error message ... you will have to post at least the log and tell us what you expected. I got the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;23         %let v1=1806;
24         %let v2=1805;
25         %let v3=1803;
26         %let v4=1712;
27         %let vector = &amp;amp;v1.+&amp;amp;v2.+&amp;amp;v3.+&amp;amp;v4.;
28         %put &amp;amp;vector.;
1806+1805+1803+1712&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 09:40:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480374#M124149</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-07-23T09:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: defined parameter with plus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480375#M124150</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please define "not working". I pasted your code in SAS and obtained the following output.&lt;/P&gt;
&lt;P&gt;Isn't that the result you want ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1    %let v1=1806;
2    %let v2=1805;
3    %let v3=1803;
4    %let v4=1712;
5    %let vector =&amp;amp;v1.+&amp;amp;v2.+&amp;amp;v3.+&amp;amp;v4.;
6    %put &amp;amp;vector.;
1806+1805+1803+1712
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Jul 2018 09:40:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480375#M124150</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2018-07-23T09:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: defined parameter with plus</title>
      <link>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480383#M124153</link>
      <description>&lt;P&gt;I am sorry,&lt;/P&gt;&lt;P&gt;I run it again and it is working well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 10:07:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/defined-parameter-with-plus/m-p/480383#M124153</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-07-23T10:07:04Z</dc:date>
    </item>
  </channel>
</rss>

