<?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: false &amp;quot;high-value&amp;quot; for a date in visual analytics 7.1 in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174547#M1105</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes that`s really strange.&lt;/P&gt;&lt;P&gt;I guess there is a bug in va, when someone wants to display a high date like 31DEC9999.&lt;/P&gt;&lt;P&gt;Because the 0 = 01JAN1960 works and other values&amp;nbsp; &amp;lt;9999 too.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Perhaps someone can help and run the dataset and load the data into memory to check if this is a global issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jan 2015 06:54:57 GMT</pubDate>
    <dc:creator>mariusg</dc:creator>
    <dc:date>2015-01-12T06:54:57Z</dc:date>
    <item>
      <title>false "high-value" for a date in visual analytics 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174545#M1103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we use the "31DEC9999" to identify the actual valid dataset.&lt;/P&gt;&lt;P&gt;Today we build a simple report with a drop-down list to filter the uploaded table on demand.&lt;/P&gt;&lt;P&gt;But the displayed high-value is the 29DEC9999. Because i am really sure that the table contains records with 31DEC9999, i opened SASStudio (same server) and searched for the 31DEC9999.... and there it is (screen2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So maybe there is a bug or something really strange in our environment. &lt;/P&gt;&lt;P&gt;Perhaps someone can help and run this simple dataset and load the data into memory to check if it works correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;thank you &lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;marius &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;libname otto '/app/.....';&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;data otto.datetest;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;format mydate date9.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;format mydateNr 8.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;do mydate="01JAN2015"d to "31DEC9999"d by 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;mydateNr = mydate;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;output;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;&lt;SPAN class="s1"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screen1_va_dec_31_9999.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8618_screen1_va_dec_31_9999.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;select * from test.datetest where mydate="31DEC9999"d;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="screen2_va_dec_31_9999.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8619_screen2_va_dec_31_9999.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 13:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174545#M1103</guid>
      <dc:creator>mariusg</dc:creator>
      <dc:date>2015-01-08T13:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: false "high-value" for a date in visual analytics 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174546#M1104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very strange screenshot indeed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Took your code and run it with SAS Studio (University Edition)&lt;/P&gt;&lt;P&gt;and get for |mydate, mydateNr] = [31DEC9999, 2936547]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SAS, a date is represented by the number of days from January 1rst, 1960.&lt;/P&gt;&lt;P&gt;It looks like in your environment, there is a shift of 2 days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could try this code:&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; d=0; put d= d= date9. d=yymmdds10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; d=1; put d= d= date9. d=yymmdds10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; d=2936545; put d= d= date9. d=yymmdds10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; d=2936546; put d= d= date9. d=yymmdds10.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; d=2936547; put d= d= date9. d=yymmdds10.;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;P&gt;On my desktop, log shows :&lt;/P&gt;&lt;P class="sasNote" id="sasLogNote1_1420734945647"&gt; d=0 d=01JAN1960 d=1960/01/01&lt;/P&gt;&lt;P class="sasSource"&gt; d=1 d=02JAN1960 d=1960/01/02&lt;/P&gt;&lt;P class="sasSource"&gt; d=2936545 d=29DEC9999 d=9999/12/29&lt;/P&gt;&lt;P class="sasSource"&gt; d=2936546 d=30DEC9999 d=9999/12/30&lt;/P&gt;&lt;P class="sasSource"&gt; d=2936547 d=31DEC9999 d=9999/12/31&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Jan 2015 16:39:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174546#M1104</guid>
      <dc:creator>tlt</dc:creator>
      <dc:date>2015-01-08T16:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: false "high-value" for a date in visual analytics 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174547#M1105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes that`s really strange.&lt;/P&gt;&lt;P&gt;I guess there is a bug in va, when someone wants to display a high date like 31DEC9999.&lt;/P&gt;&lt;P&gt;Because the 0 = 01JAN1960 works and other values&amp;nbsp; &amp;lt;9999 too.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;Perhaps someone can help and run the dataset and load the data into memory to check if this is a global issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jan 2015 06:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174547#M1105</guid>
      <dc:creator>mariusg</dc:creator>
      <dc:date>2015-01-12T06:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: false "high-value" for a date in visual analytics 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174548#M1106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was curious to see this myself and did the following testing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I ran your code in SAS Enterprise Guide and got the dates as you did.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Dataset_EnterpriseGuide.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/8687_Dataset_EnterpriseGuide.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I loaded the data into SAS Visual Analytics 6.4 and the date value for 31DEC9999 is the same as you experienced. Perhaps this is due to leap years over time and for some reason this is calculated differently in SAS VA. Why? :smileyconfused:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Dataset_VisualAnalytics.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/8688_Dataset_VisualAnalytics.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;3) I was curious to know at what point is the difference between the dates less than one so I exported the data from SAS Visual Analytics and imported it into SAS Enterprise Guide and calculated the lag to see where it was less than 1 and found the following...&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;data test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp; set work.export;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp; if lag&amp;lt;1&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp; format mydate date9.&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;And the result table, test contains the value:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;&lt;IMG alt="date_lag.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/8689_date_lag.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting observation &lt;A __default_attr="808542" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;! As the date 31DEC9999 is traditionally used to indicate a valid/open transaction when working with slowly changing dimension data, it is crucial to ensure the SAS date 31DEC9999 is the same number as when used on the SAS Workspace Server. I agree there seems to be an issue with large dates in SAS Visual Analytics. Please report your findings to SAS Technical Support.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 03:57:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174548#M1106</guid>
      <dc:creator>MichelleHomes</dc:creator>
      <dc:date>2015-01-13T03:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: false "high-value" for a date in visual analytics 7.1</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174549#M1107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What could be?&lt;/P&gt;&lt;P&gt;- There is some statement they have build something new for SAS-VA not using all the old code.&lt;/P&gt;&lt;P&gt;- Whithin JAVA there as whole approach on dates. &lt;A href="https://docs.oracle.com/javase/6/docs/api/java/text/DateFormat.html#calendar" title="https://docs.oracle.com/javase/6/docs/api/java/text/DateFormat.html#calendar"&gt;DateFormat (Java Platform SE 6)&lt;/A&gt; (format and calculations on the epoch)&lt;/P&gt;&lt;P&gt;&amp;nbsp; These are possible different to JAVA version and machines.&lt;/P&gt;&lt;P&gt;Gettting the bad feeling there is some difference introduced&amp;nbsp; only getting into that problems using those high 9999 years leap-year or whatever&lt;/P&gt;&lt;P&gt;Definitely something to bother TS for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2015 10:28:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/false-quot-high-value-quot-for-a-date-in-visual-analytics-7-1/m-p/174549#M1107</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2015-01-13T10:28:15Z</dc:date>
    </item>
  </channel>
</rss>

