<?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: Filtering date field in universal viewer in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/362558#M274795</link>
    <description>&lt;P&gt;I really appreciate you takeing the time to submit a solution.&amp;nbsp; Unfortunately the SAS Universal Viewer doesn't use SAS syntax, it is strickly point and click process to create the commands to be submitted.&amp;nbsp; You can edit it's created&amp;nbsp; syntax but it has to follow the format that I submitted with this track.&amp;nbsp; I have tried all the known proper SAS date formats including those used with various database packages.&amp;nbsp; I have a problem track on SAS support. I am hoping they&amp;nbsp; can find a solution to how to subset dates in the Universal Viewer.&lt;/P&gt;</description>
    <pubDate>Mon, 29 May 2017 20:35:44 GMT</pubDate>
    <dc:creator>Hoffy</dc:creator>
    <dc:date>2017-05-29T20:35:44Z</dc:date>
    <item>
      <title>Filtering date field in universal viewer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/361966#M274791</link>
      <description>&lt;P&gt;I am not having any luck in getting the universal viewer 1.42 to filter a date.&amp;nbsp; I go through the advanced point and click to select my variable, operator, and condition.&amp;nbsp; Here is what I get constructed by the process&lt;/P&gt;
&lt;P&gt;&lt;FONT size="1"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;Convert([Default_Date],'System.DateTime')&amp;lt;#2010/01/01 08:46:21#&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't have any idea where it gets the timestamp of 08:46:21 unless from my login time.&amp;nbsp; I only have 365 observations so the execution time shouldn't be the issue.&amp;nbsp; I have even editted the timestamp portion to 00:00:00 and still no filtering takes place.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have had no issues with filtering numeric or text variables, just the simple date.&amp;nbsp; Any help will be much appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 14:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/361966#M274791</guid>
      <dc:creator>Hoffy</dc:creator>
      <dc:date>2017-05-26T14:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering date field in universal viewer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/361993#M274792</link>
      <description>I believe you need to subset the datetime data based on the numeric datetime value. I mean the datetime values without the format. Or you need to use the datetime literal '01/05/2017:08:00:00'dt like this to subset.</description>
      <pubDate>Fri, 26 May 2017 15:11:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/361993#M274792</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2017-05-26T15:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering date field in universal viewer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/362027#M274793</link>
      <description>&lt;P&gt;The date as you presented is not recognized in the univ viewer.&amp;nbsp; I can subset using the numeric value of the date but that is such a klutzy way to do it.&amp;nbsp; If I actually have a specific date that I want to use, it has to be highlighted and then remove formating to see the value.&amp;nbsp; The syntax is created by the point and click, it can be editted but still has to conform to the viewer syntax rules.&amp;nbsp; The Universal Viewer is great to just browse a dataset and the subsetting on numeric and text is sort of straight forward.&amp;nbsp; The date subsetting, except for the numeric conversion, just doesn't work.&amp;nbsp; I do have a SAS support track on it but thought I would also reach out to anyone that may use the viewer and figured out a way to use the date without converting to the numeric value.&amp;nbsp; Thanks.&amp;nbsp; If I get a resolution I will post it here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 May 2017 16:01:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/362027#M274793</guid>
      <dc:creator>Hoffy</dc:creator>
      <dc:date>2017-05-26T16:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering date field in universal viewer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/362349#M274794</link>
      <description>Datetime constant uses 3 letters for month like&lt;BR /&gt;'29May2017:20:33'dt&lt;BR /&gt;</description>
      <pubDate>Sun, 28 May 2017 19:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/362349#M274794</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2017-05-28T19:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering date field in universal viewer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/362558#M274795</link>
      <description>&lt;P&gt;I really appreciate you takeing the time to submit a solution.&amp;nbsp; Unfortunately the SAS Universal Viewer doesn't use SAS syntax, it is strickly point and click process to create the commands to be submitted.&amp;nbsp; You can edit it's created&amp;nbsp; syntax but it has to follow the format that I submitted with this track.&amp;nbsp; I have tried all the known proper SAS date formats including those used with various database packages.&amp;nbsp; I have a problem track on SAS support. I am hoping they&amp;nbsp; can find a solution to how to subset dates in the Universal Viewer.&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2017 20:35:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/362558#M274795</guid>
      <dc:creator>Hoffy</dc:creator>
      <dc:date>2017-05-29T20:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Filtering date field in universal viewer</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/363654#M274796</link>
      <description>&lt;P&gt;This is an update on the progress, or lack of, to find the way to subset date and datetime variables.&amp;nbsp; The syntax is created by a point and click interface for filtering.&amp;nbsp; For date/datetime you have to use the Advanced Filtering.&amp;nbsp; You can edit the created syntax but still must follow a non-SAS like syntax. I have been able to subset two datetime variables in a dataset but still have to manually edit the right hand portion of the selection. Not being able to subset on a date/datetime variable and comparing it to a user entered date has escaped me for now. The last I heard from SAS Support they wanted a dataset, so I sent them my code that created a test two observation, two variable dataset with a datetime and a character variable. I haven't heard from them since sending it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I get a useable way to do the subsetting I will post it here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 00:16:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Filtering-date-field-in-universal-viewer/m-p/363654#M274796</guid>
      <dc:creator>Hoffy</dc:creator>
      <dc:date>2017-06-02T00:16:13Z</dc:date>
    </item>
  </channel>
</rss>

