<?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: Sysdate to iso8601 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780965#M248883</link>
    <description>Date isn't converted</description>
    <pubDate>Thu, 18 Nov 2021 08:33:12 GMT</pubDate>
    <dc:creator>Pandu2</dc:creator>
    <dc:date>2021-11-18T08:33:12Z</dc:date>
    <item>
      <title>Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780661#M248757</link>
      <description>Hi All,&lt;BR /&gt;Can anyone help me on how to convert today's date time to ISO 8601. Which is like YYYY-MM-DDTHH:MM:SS.000Z format.&lt;BR /&gt;Any help is appreciated.&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 17 Nov 2021 04:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780661#M248757</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-17T04:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780663#M248758</link>
      <description>I didn't have any date time value stored. I need to take the daily wise system date to convert it to YYYY-MM-DDTHH:MM:SS.000Z.&lt;BR /&gt;Thanks.</description>
      <pubDate>Wed, 17 Nov 2021 04:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780663#M248758</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-17T04:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780666#M248759</link>
      <description>&lt;P&gt;See the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/lefunctionsref/n0d1c4j8iqvqsen1r4lq8plq8atb.htm" target="_blank" rel="noopener"&gt;DATETIME()&lt;/A&gt; function and the &lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/leforinforref/n03vr57gdozvean1klfaaa14c9c0.htm" target="_blank" rel="noopener"&gt;E8601DT&lt;/A&gt; format.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 05:00:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780666#M248759</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-17T05:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780943#M248875</link>
      <description>Hi All,&lt;BR /&gt;I've got some api url named &lt;A href="https://xyz.com/abc/def/expecteddel" target="_blank"&gt;https://xyz.com/abc/def/expecteddel&lt;/A&gt;&amp;lt;YYYY-MM-DDTHH:MM:SS.000Z;status==1001&lt;BR /&gt;&lt;BR /&gt;So over there YYYY-MM-DDTHH:MM:SS.000Z should be daily wise datetime and that datetime and status==1001 must be used as macro variable to create a url. For ex,&lt;BR /&gt;%let host= rest.xyz.com;&lt;BR /&gt;%let uri=/abc/def;&lt;BR /&gt;%let date must be equal to YYYY-MM-DDTHH:MM:SS.000Z; to this format.&lt;BR /&gt;%let status must be equal to ==1001.&lt;BR /&gt;So the final url looks like this.&lt;BR /&gt;&lt;BR /&gt;%let url=&amp;amp;host.&amp;amp;uri.&amp;amp;date.&amp;amp;status.;&lt;BR /&gt;So, can anyone help me out on how to achieve the above url macro variable please. Any help appreciated.&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 18 Nov 2021 07:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780943#M248875</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-18T07:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780945#M248877</link>
      <description>It's my bad the api url is &lt;A href="https://xyz" target="_blank"&gt;https://xyz&lt;/A&gt; com/abc/def/?filters=expecteddel&amp;lt;YYYY-MM-DDTHH:MM:SS.000Z;status==1001&lt;BR /&gt;&lt;BR /&gt;The must be converted into a macro variable as shown above ex</description>
      <pubDate>Thu, 18 Nov 2021 07:15:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780945#M248877</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-18T07:15:15Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780956#M248879</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%let host= rest.xyz.com;
%let uri=/abc/def;
%let date = %sysfunc(datetime(),e8601dt24.3)Z;
%let status = status==1001;

%let everything=https://&amp;amp;host.&amp;amp;uri./?filters=expecteddel&amp;lt;&amp;amp;date.%str(;)&amp;amp;status;

%put "&amp;amp;everything";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log:&lt;/P&gt;
&lt;PRE&gt; 69         %let host= rest.xyz.com;
 70         %let uri=/abc/def;
 71         %let date = %sysfunc(datetime(),e8601dt24.3)Z;
 72         %let status = status==1001;
 73         
 74         %let everything=https://&amp;amp;host.&amp;amp;uri./?filters=expecteddel&amp;lt;&amp;amp;date.%str(;)&amp;amp;status;
 75         
 76         %put "&amp;amp;everything";
 "https://rest.xyz.com/abc/def/?filters=expecteddel&amp;lt;2021-11-18T09:07:54.382Z;status==1001"
&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Nov 2021 08:11:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780956#M248879</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-18T08:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780964#M248882</link>
      <description>Thanks, Everything looks good but the isn't converted to that format 2021-11-18T09:07:54.382Z&lt;BR /&gt;Log :&lt;BR /&gt;"&lt;A href="https://rest.xyz.com/abc/def/?filters=expecteddel" target="_blank"&gt;https://rest.xyz.com/abc/def/?filters=expecteddel&lt;/A&gt;&amp;lt;1952863053.113Z;status==1001"&lt;BR /&gt;This is how it printed the url.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Nov 2021 08:31:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780964#M248882</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-18T08:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780965#M248883</link>
      <description>Date isn't converted</description>
      <pubDate>Thu, 18 Nov 2021 08:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780965#M248883</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-18T08:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780967#M248884</link>
      <description>&lt;P&gt;As you can see from the log that I posted, the code &lt;U&gt;works&lt;/U&gt; (tested on SAS On Demand, so no special setup).&lt;/P&gt;
&lt;P&gt;Post your &lt;EM&gt;complete&lt;/EM&gt; log of these macro statements as you ran them.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 08:43:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780967#M248884</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-18T08:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780970#M248885</link>
      <description>Here's the log:&lt;BR /&gt;1 The SAS System 01:33 Thursday, Nov&lt;BR /&gt;NOTE: Writing HTML5(EGHTML) Body file: EGHTML&lt;BR /&gt;23&lt;BR /&gt;24 %let host=rest.xyz.com;&lt;BR /&gt;25 %let uri=/abc/def;&lt;BR /&gt;26 %let date = %sysfunc(datetime(),e8061dt24.3)Z;&lt;BR /&gt;27 %let status= status==1001;&lt;BR /&gt;28 %let url=https://&amp;amp;host.&amp;amp;uri./?filters=expecteddel&amp;lt;&amp;amp;date.%str(;)&amp;amp;status;&lt;BR /&gt;29 %put "&amp;amp;url";&lt;BR /&gt;"&lt;A href="https://rest.xyz.com/abc/def/?filters=expecteddel" target="_blank"&gt;https://rest.xyz.com/abc/def/?filters=expecteddel&lt;/A&gt;&amp;lt;1952863053.113Z;status==1001"</description>
      <pubDate>Thu, 18 Nov 2021 08:52:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780970#M248885</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-18T08:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780971#M248886</link>
      <description>I ran it in Sas EG</description>
      <pubDate>Thu, 18 Nov 2021 08:53:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780971#M248886</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-18T08:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780972#M248887</link>
      <description>&lt;P&gt;You misspelled the format in the %SYSFUNC; it should be e8601, not e8061.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 09:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780972#M248887</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-18T09:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780973#M248888</link>
      <description>I'm sorry my bad, I can't be thankful enough for your assistance.</description>
      <pubDate>Thu, 18 Nov 2021 09:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780973#M248888</guid>
      <dc:creator>Pandu2</dc:creator>
      <dc:date>2021-11-18T09:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sysdate to iso8601</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780975#M248889</link>
      <description>&lt;P&gt;Support the SASWare Ballot Idea I just posted &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 09:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Sysdate-to-iso8601/m-p/780975#M248889</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-18T09:26:57Z</dc:date>
    </item>
  </channel>
</rss>

