<?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: Need to find timezone in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Need-to-find-timezone/m-p/437693#M69040</link>
    <description>&lt;P&gt;You may actually have a dataset installed named SASHELP.ZIPCODE which has that information including city names (and some alternate names as well), state zipcode and lat and long though those may not match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question may be are your zips 5 or 5+4?&lt;/P&gt;
&lt;P&gt;The ZIP in sashelp.zipcode is numeric so matching may require adjusting values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming your zip are numeric and of the classic 5 number variety:&lt;/P&gt;
&lt;PRE&gt;proc sql;
   create table tz as
   select a.*, b.timezone, b.gmtoffset
   from youdata as a
       left join
       sashelp.zipcode as b
       on a.zip=b.zip;
quit;&lt;/PRE&gt;
&lt;P&gt;If you zip is a 5 character with leading 00 as needed then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
   create table tz as
   select  a.*, b.timezone, b.gmtoffset
   from youdata as a
       left join
       sashelp.zipcode as b
       on a.zip= put(b.zip,z5.);
quit;&lt;/PRE&gt;</description>
    <pubDate>Thu, 15 Feb 2018 17:00:52 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-02-15T17:00:52Z</dc:date>
    <item>
      <title>Need to find timezone</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-to-find-timezone/m-p/437426#M69020</link>
      <description>I have a table thst has&lt;BR /&gt;City state zip lat long&lt;BR /&gt;I need to find the time zone base of these col for example&lt;BR /&gt;Central...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks for assistance</description>
      <pubDate>Thu, 15 Feb 2018 06:54:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-to-find-timezone/m-p/437426#M69020</guid>
      <dc:creator>Gil_</dc:creator>
      <dc:date>2018-02-15T06:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find timezone</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-to-find-timezone/m-p/437473#M69023</link>
      <description>&lt;P&gt;I don't think SAS has such a functionality directly, but below is a link to a data base that links latitude and longitude to time zones&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://boutell.com/zipcodes/" target="_blank"&gt;https://boutell.com/zipcodes/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 09:47:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-to-find-timezone/m-p/437473#M69023</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2018-02-15T09:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need to find timezone</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Need-to-find-timezone/m-p/437693#M69040</link>
      <description>&lt;P&gt;You may actually have a dataset installed named SASHELP.ZIPCODE which has that information including city names (and some alternate names as well), state zipcode and lat and long though those may not match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question may be are your zips 5 or 5+4?&lt;/P&gt;
&lt;P&gt;The ZIP in sashelp.zipcode is numeric so matching may require adjusting values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming your zip are numeric and of the classic 5 number variety:&lt;/P&gt;
&lt;PRE&gt;proc sql;
   create table tz as
   select a.*, b.timezone, b.gmtoffset
   from youdata as a
       left join
       sashelp.zipcode as b
       on a.zip=b.zip;
quit;&lt;/PRE&gt;
&lt;P&gt;If you zip is a 5 character with leading 00 as needed then&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
   create table tz as
   select  a.*, b.timezone, b.gmtoffset
   from youdata as a
       left join
       sashelp.zipcode as b
       on a.zip= put(b.zip,z5.);
quit;&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Feb 2018 17:00:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Need-to-find-timezone/m-p/437693#M69040</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-02-15T17:00:52Z</dc:date>
    </item>
  </channel>
</rss>

