<?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: Is there a way to simulate a chronometer is SAS in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-way-to-simulate-a-chronometer-is-SAS/m-p/893667#M43662</link>
    <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can sound an alarm after x number of seconds :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL_;
/* The following example tells SAS to delay the execution        */
/* of the DATA step _NULL_ for 20 seconds:                       */ 
   time_slept=sleep(20,1);
/* The following statement produces a tone of                    */
/* frequency 523 cycles per second (middle C) lasting 2 seconds: */ 
   call sound(523,2000);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2023 23:00:57 GMT</pubDate>
    <dc:creator>sbxkoenk</dc:creator>
    <dc:date>2023-09-11T23:00:57Z</dc:date>
    <item>
      <title>Is there a way to simulate a chronometer is SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-way-to-simulate-a-chronometer-is-SAS/m-p/893618#M43659</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using a proc http to check if a Bearer Token is valid and how much time it will be valid.&lt;/P&gt;
&lt;P&gt;However, this value does not change with time.&amp;nbsp; Is there a way to start some kind of chronometer and to put this value into a macro variable to estimate the remaining time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;P	P1	V	Value
1	access_token	1	xxxxxxxxxxxxxxxxxxxxxxxxxxx
1	token_type	1	Bearer
1	expires_in	1	3599
1	scope	1	read:survey_responses read:users&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname auth json fileref=resp;
data test;
 set auth.root;
 call symputx('BearerToken',access_token,'g');
 call symput('BTExpIn',expires_in);
run;
%put &amp;amp;=BearerToken &amp;amp;=BTExpIn;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2023 18:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-way-to-simulate-a-chronometer-is-SAS/m-p/893618#M43659</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2023-09-11T18:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to simulate a chronometer is SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-way-to-simulate-a-chronometer-is-SAS/m-p/893646#M43661</link>
      <description>&lt;P&gt;Assuming that expiry time is in seconds, the token lasts for 1 hour:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
  Now_Time = time();
  Expire_Time = intnx('SECOND',Now_Time , 3599);
  format Now_Time Expire_Time time8.;
  put _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2023 20:53:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-way-to-simulate-a-chronometer-is-SAS/m-p/893646#M43661</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2023-09-11T20:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to simulate a chronometer is SAS</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-way-to-simulate-a-chronometer-is-SAS/m-p/893667#M43662</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can sound an alarm after x number of seconds :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _NULL_;
/* The following example tells SAS to delay the execution        */
/* of the DATA step _NULL_ for 20 seconds:                       */ 
   time_slept=sleep(20,1);
/* The following statement produces a tone of                    */
/* frequency 523 cycles per second (middle C) lasting 2 seconds: */ 
   call sound(523,2000);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2023 23:00:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Is-there-a-way-to-simulate-a-chronometer-is-SAS/m-p/893667#M43662</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-09-11T23:00:57Z</dc:date>
    </item>
  </channel>
</rss>

