<?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: data step versus %SYSFUNC in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-step-versus-SYSFUNC/m-p/610929#M178009</link>
    <description>&lt;P&gt;Since the macro preprocessor is a pure text processor, quotes are not needed for string values:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET s_time = %sysfunc(intnx(minute,%sysfunc(time()),5,S),time8.);
%PUT &amp;amp;s_time.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 11 Dec 2019 09:09:11 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2019-12-11T09:09:11Z</dc:date>
    <item>
      <title>data step versus %SYSFUNC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-versus-SYSFUNC/m-p/610927#M178007</link>
      <description>&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can someone explain why this works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data worksfine;

starttime = time(); 
duration = 5;
stoptime = intnx('minute', starttime, duration, 'S');
stoptime2 = intnx('minute', time(), duration, 'S');

put _ALL_;

format starttime   stoptime: time8.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But this does not work:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Stop Time*/
%LET s_time = %sysfunc(intnx('minute',  %sysfunc(time()), 5, 'S'));
%PUT &amp;amp;s_time.;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;FK&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 09:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-versus-SYSFUNC/m-p/610927#M178007</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2019-12-11T09:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: data step versus %SYSFUNC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-versus-SYSFUNC/m-p/610929#M178009</link>
      <description>&lt;P&gt;Since the macro preprocessor is a pure text processor, quotes are not needed for string values:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET s_time = %sysfunc(intnx(minute,%sysfunc(time()),5,S),time8.);
%PUT &amp;amp;s_time.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Dec 2019 09:09:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-versus-SYSFUNC/m-p/610929#M178009</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-11T09:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: data step versus %SYSFUNC</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-step-versus-SYSFUNC/m-p/610930#M178010</link>
      <description>&lt;P&gt;Thank's Kurt for helping me out!&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 09:10:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-step-versus-SYSFUNC/m-p/610930#M178010</guid>
      <dc:creator>FK1</dc:creator>
      <dc:date>2019-12-11T09:10:21Z</dc:date>
    </item>
  </channel>
</rss>

