<?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: Main frame dates conversion in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669977#M201070</link>
    <description>&lt;P&gt;Where are you reading these dates from? There is no such thing as a "standard mainframe date format" so unless you tell us more about where you are reading dates and how they are stored then we can't help.&lt;/P&gt;</description>
    <pubDate>Thu, 16 Jul 2020 20:47:23 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2020-07-16T20:47:23Z</dc:date>
    <item>
      <title>Main frame dates conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669904#M201022</link>
      <description>&lt;P&gt;&amp;nbsp;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have mainframe dates as 2458058,2458150,2458239. Is there a way I can convert these mainframe dates to readable dates as date9.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 15:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669904#M201022</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2020-07-16T15:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Main frame dates conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669908#M201025</link>
      <description>&lt;P&gt;Might not hurt to mention which mainframe ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 15:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669908#M201025</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-16T15:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Main frame dates conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669912#M201029</link>
      <description>&lt;P&gt;And to which dates should these numbers (or strings) translate? Please give examples, or supply a formula.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 15:49:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669912#M201029</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-16T15:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Main frame dates conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669952#M201056</link>
      <description>&lt;P&gt;its in SAS mainframe&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 18:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669952#M201056</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2020-07-16T18:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Main frame dates conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669953#M201057</link>
      <description>&lt;P&gt;there is no formula or final results I can see they are only being used in the filter condition.I want to know what dates these numbers represents&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 18:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669953#M201057</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2020-07-16T18:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Main frame dates conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669966#M201065</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;its in SAS mainframe&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS is software and runs on many hardware platforms and operating systems. Mainframe refers to the hardware as various hardware systems will treat their native dates differently. Sometimes the hardware could even run different operating systems, some flavor of UNIX vs Z/OS for example.&lt;/P&gt;
&lt;P&gt;If the value in a SAS data set were numeric 2458058 then that would correspond to a SAS date value of 09DEC8689. So I suspect that you have a need to read a value from the operating system and convert to an actual SAS date value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So which hardware and which operating system and what dates would those values reflect?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 19:43:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669966#M201065</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-07-16T19:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Main frame dates conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669977#M201070</link>
      <description>&lt;P&gt;Where are you reading these dates from? There is no such thing as a "standard mainframe date format" so unless you tell us more about where you are reading dates and how they are stored then we can't help.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jul 2020 20:47:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/669977#M201070</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-07-16T20:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Main frame dates conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/670886#M201434</link>
      <description>&lt;P&gt;You have to find &lt;EM&gt;some&lt;/EM&gt; reference points for these values. Dividing by 365.25 (my suspicion was that these are counts of days from 0001-01-01) or 86400 did not end with values that make sense as dates.&lt;/P&gt;
&lt;P&gt;If someone used these values in the context of dates without documenting how they are calculated, said someone needs to be flogged publicly in front of the whole IT department, pour encourager les autres.&lt;/P&gt;
&lt;P&gt;Unless the calculation method is commonly used in your company, and every mainframe programmer there knows it like we know that SAS dates start at 1960-01-01.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 08:02:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/670886#M201434</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-07-21T08:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Main frame dates conversion</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/670894#M201437</link>
      <description>&lt;P&gt;This could it be a &lt;SPAN&gt;"SQL Server corrected" Julian date&lt;/SPAN&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data T;
  JULDATE = 2458239;
  SASDATE = JULDATE - 2361331 + '01jan1753'd ;
  putlog SASDATE= date9. ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;SASDATE=30APR2018&amp;nbsp;&lt;BR /&gt;See &lt;A href="https://www.sqlteam.com/forums/topic.asp?TOPIC_ID=75091" target="_self"&gt;here&lt;/A&gt;&amp;nbsp;and &lt;A href="https://en.wikipedia.org/wiki/Julian_day" target="_self"&gt;here&lt;/A&gt;. The start would be at noon on the 1st of&amp;nbsp;&lt;SPAN&gt;January 4713 BC. Or something.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I'm off making up my own new date format...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;You'd be much better off having at least one value to validate the formula.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2020 08:59:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Main-frame-dates-conversion/m-p/670894#M201437</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-07-21T08:59:47Z</dc:date>
    </item>
  </channel>
</rss>

