<?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/854418#M337671</link>
    <description>&lt;P&gt;As an alternative, you can use the macro language %SYSFUNC function to call TODAY() to get the date, without using a data step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;3    %let g_job_date=%sysfunc(today(),date9) ;
4    %put &amp;amp;=g_job_date ;
G_JOB_DATE=18JAN2023
&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Jan 2023 19:22:38 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2023-01-18T19:22:38Z</dc:date>
    <item>
      <title>Call symput</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-symput/m-p/854253#M337603</link>
      <description>Data _null_;&lt;BR /&gt;Job_date=today();&lt;BR /&gt;Format job_date date9.;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;%let sampdate=&amp;amp;g_job_date;&lt;BR /&gt;Call symput(”g_job_date”, put(job_date, date9.));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It says call symput statement is used out of order and why?</description>
      <pubDate>Wed, 18 Jan 2023 03:30:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-symput/m-p/854253#M337603</guid>
      <dc:creator>HeatherNewton</dc:creator>
      <dc:date>2023-01-18T03:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: Call symput</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-symput/m-p/854262#M337604</link>
      <description>&lt;P&gt;Call symput is expected to be in a data step. Your example has it after the end of the shown data step. Run statement ends a data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/416388"&gt;@HeatherNewton&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Data _null_;&lt;BR /&gt;Job_date=today();&lt;BR /&gt;Format job_date date9.;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;%let sampdate=&amp;amp;g_job_date;&lt;BR /&gt;Call symput(”g_job_date”, put(job_date, date9.));&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It says call symput statement is used out of order and why?&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2023 05:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-symput/m-p/854262#M337604</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-01-18T05:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Call symput</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-symput/m-p/854416#M337669</link>
      <description>&lt;P&gt;Try this instead:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data _null_;
Job_date=today();
Format job_date date9.;
Call symput("g_job_date", put(job_date, date9.));
Run;

%put &amp;amp;=g_job_date;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jan 2023 19:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-symput/m-p/854416#M337669</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2023-01-18T19:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Call symput</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Call-symput/m-p/854418#M337671</link>
      <description>&lt;P&gt;As an alternative, you can use the macro language %SYSFUNC function to call TODAY() to get the date, without using a data step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;3    %let g_job_date=%sysfunc(today(),date9) ;
4    %put &amp;amp;=g_job_date ;
G_JOB_DATE=18JAN2023
&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Jan 2023 19:22:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Call-symput/m-p/854418#M337671</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2023-01-18T19:22:38Z</dc:date>
    </item>
  </channel>
</rss>

