<?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: call symput in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/call-symput/m-p/194274#M266344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't mention much detail, is year numeric?&amp;nbsp; if so then just add the variable (it being 0 or 1) to year and symput it?&lt;/P&gt;&lt;P&gt;call symput('YYYY',put(year+input(variable,best.),best.));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2015 08:16:55 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2015-04-13T08:16:55Z</dc:date>
    <item>
      <title>call symput</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-symput/m-p/194273#M266343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple question:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if variable = 0 then yyyy = year&lt;/P&gt;&lt;P&gt;if variable = 1 then yyyy = year-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can this be done with call symput?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It needs to be something like (not actual code, just an example):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if variable = '0' then call symput ('yyyy',year);&lt;BR /&gt;else if variable = '1' then call symput ('yyyy',year-1);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 07:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-symput/m-p/194273#M266343</guid>
      <dc:creator>PaulC</dc:creator>
      <dc:date>2015-04-13T07:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: call symput</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-symput/m-p/194274#M266344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You don't mention much detail, is year numeric?&amp;nbsp; if so then just add the variable (it being 0 or 1) to year and symput it?&lt;/P&gt;&lt;P&gt;call symput('YYYY',put(year+input(variable,best.),best.));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 08:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-symput/m-p/194274#M266344</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-04-13T08:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: call symput</title>
      <link>https://communities.sas.com/t5/SAS-Programming/call-symput/m-p/194275#M266345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;thanks, I resolved this..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 08:52:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/call-symput/m-p/194275#M266345</guid>
      <dc:creator>PaulC</dc:creator>
      <dc:date>2015-04-13T08:52:42Z</dc:date>
    </item>
  </channel>
</rss>

