<?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: change sas session to UTC time in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/change-sas-session-to-UTC-time/m-p/670730#M201387</link>
    <description>&lt;P&gt;You can change the TIMEZONE option.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=p15siqs0s00e50n1wuuvygzkr14r.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=p15siqs0s00e50n1wuuvygzkr14r.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Looks like you can change it on the fly if you want.&lt;/P&gt;
&lt;PRE&gt;1327  %put timezone=%sysfunc(getoption(timezone)) %sysfunc(datetime(),datetime20.);
timezone=   20JUL2020:13:42:49
1328  options timezone='GMT';
1329  %put timezone=%sysfunc(getoption(timezone)) %sysfunc(datetime(),datetime20.);
timezone='GMT'   20JUL2020:17:42:49
1330  options timezone='EDT';
1331  %put timezone=%sysfunc(getoption(timezone)) %sysfunc(datetime(),datetime20.);
timezone='EDT'   20JUL2020:13:42:49&lt;/PRE&gt;</description>
    <pubDate>Mon, 20 Jul 2020 17:43:28 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-07-20T17:43:28Z</dc:date>
    <item>
      <title>change sas session to UTC time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-sas-session-to-UTC-time/m-p/670582#M201336</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;We have a file landing in S3 in UTC time zone but our sas is in GMT time zone. How can we change our SAS session to UTC.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ex:test,txt is landing at 12:30 AM Monday. If I try to read that file through sas(If file is updated today then read the file ,file is showing updated 11:30 PM yesterday ) but&amp;nbsp; it is not picking up because of UTC time.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;SS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jul 2020 08:49:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-sas-session-to-UTC-time/m-p/670582#M201336</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2020-07-20T08:49:39Z</dc:date>
    </item>
    <item>
      <title>Re: change sas session to UTC time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-sas-session-to-UTC-time/m-p/670724#M201385</link>
      <description>&lt;P&gt;I don't think I quite understand your issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the time that a SAS program is supposed to run the issue? Is the schedule starting that program in SAS? If so, how is that program scheduled?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or is the issue that the time values SAS reads are showing incorrectly?&lt;/P&gt;
&lt;DIV class="xis-eDocBody"&gt;
&lt;DIV id="n0px72paaaqx06n1ozps024j78cl" class="xis-topic"&gt;
&lt;DIV id="n14kbxrc3yxlson1h1cm6fxtihej" class="xis-subTopic"&gt;
&lt;DIV id="p128wft5zytebin1paza2zw7nfzz" class="xis-subSubTopic"&gt;
&lt;DIV id="p1jdpdg49qz0m4n1re8lrs8q1d35" class="xis-topicContent"&gt;
&lt;DIV id="p0fxgnpack4d9yn17g39yhsdw7ys" class="xis-paragraph"&gt;
&lt;DIV class="xis-listUnordered"&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;DIV id="n1je3f2yxt9e4hn18x4dv6omuk8x" class="xis-item"&gt;
&lt;DIV id="p17u5qaed6f6aln17zmgyeq4ygvn" class="xis-paraSimpleFirst"&gt;The TZONES2U( ) converts a SAS datetime value to a UTC datetime value.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;DIV id="p1skaugta873uzn19i35dt1cv1n3" class="xis-item"&gt;
&lt;DIV id="n1ipo57vwvnxndn1a17371dglzeu" class="xis-paraSimpleFirst"&gt;The TZONEU2S( ) function converts a UTC datetime value to a SAS datetime value.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Jul 2020 17:05:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-sas-session-to-UTC-time/m-p/670724#M201385</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-20T17:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: change sas session to UTC time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-sas-session-to-UTC-time/m-p/670730#M201387</link>
      <description>&lt;P&gt;You can change the TIMEZONE option.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=p15siqs0s00e50n1wuuvygzkr14r.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=nlsref&amp;amp;docsetTarget=p15siqs0s00e50n1wuuvygzkr14r.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Looks like you can change it on the fly if you want.&lt;/P&gt;
&lt;PRE&gt;1327  %put timezone=%sysfunc(getoption(timezone)) %sysfunc(datetime(),datetime20.);
timezone=   20JUL2020:13:42:49
1328  options timezone='GMT';
1329  %put timezone=%sysfunc(getoption(timezone)) %sysfunc(datetime(),datetime20.);
timezone='GMT'   20JUL2020:17:42:49
1330  options timezone='EDT';
1331  %put timezone=%sysfunc(getoption(timezone)) %sysfunc(datetime(),datetime20.);
timezone='EDT'   20JUL2020:13:42:49&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jul 2020 17:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-sas-session-to-UTC-time/m-p/670730#M201387</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-07-20T17:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: change sas session to UTC time</title>
      <link>https://communities.sas.com/t5/SAS-Programming/change-sas-session-to-UTC-time/m-p/670888#M201435</link>
      <description>&lt;P&gt;Its a manual run not scheduled yet.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;the issue&amp;nbsp;is that the time values SAS reads are showing incorrectly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I will try with&amp;nbsp;&lt;SPAN&gt;TZONES2U( )&amp;nbsp;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 08:05:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/change-sas-session-to-UTC-time/m-p/670888#M201435</guid>
      <dc:creator>sathya66</dc:creator>
      <dc:date>2020-07-21T08:05:52Z</dc:date>
    </item>
  </channel>
</rss>

