<?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: Categorical to Date in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866978#M17079</link>
    <description>&lt;P&gt;Those strings are not in a style that the DATE informat will understand.&amp;nbsp; &amp;nbsp;It wants the day of the month first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using the&amp;nbsp;anydtdte11. informat instead.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Mar 2023 13:37:40 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2023-03-29T13:37:40Z</dc:date>
    <item>
      <title>Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866956#M17074</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a column on my dataset that has date values, but the variable is Catregorical. I am looking for a way to get the month values. For example, the data I have is Dec 08 2022 (categorical). I would like to get the 08, using VA interface. I'd use Calculated Item, and use Text operators but then they require numerical inputs. So, this idea didn't work.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Can I achieve what I am trying to do in VA? If yes, how?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 12:34:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866956#M17074</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2023-03-29T12:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866961#M17075</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is a common issue, especially if you are importing CSV/TSV data. The Parse() operator is what you need.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/vacdc/v_018/vareportdata/p0dovqqp325peyn1dpijpxxmwj83.htm#p1o97a89uvuxwjn1pajtmk0f60pw" target="_blank"&gt;https://documentation.sas.com/doc/en/vacdc/v_018/vareportdata/p0dovqqp325peyn1dpijpxxmwj83.htm#p1o97a89uvuxwjn1pajtmk0f60pw&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Parse&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;FONT size="3"&gt;interprets a numeric or datetime value from the input string. Click the format field to select the format that is used to interpret the string. The output from the Parse operator is either a number or a datetime value, depending on the format that you select.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&lt;FONT size="3"&gt;For example,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="xisDoc-inlineCode"&gt;Parse('15JAN2013', 'DATE9.')&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;returns 15JAN2013 as a date value.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;Let us know if that helps,&lt;/P&gt;
&lt;P class="xisDoc-paragraph"&gt;Sam&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 12:41:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866961#M17075</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-03-29T12:41:11Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866970#M17076</link>
      <description>&lt;P&gt;Hi Sam,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the suggestion. Actually, I tried it but then all I had in the calculated item was missings. Here is how I created the Calculated Item using Parse:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="znhnm_1-1680094901661.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82153i0CE2AFE24FBC3D3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="znhnm_1-1680094901661.png" alt="znhnm_1-1680094901661.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is the result on the left hand side column (all missing) created based on the right hand side column.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="znhnm_0-1680094871319.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82152i88B82FEF8213269C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="znhnm_0-1680094871319.png" alt="znhnm_0-1680094871319.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 13:02:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866970#M17076</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2023-03-29T13:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866973#M17077</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like your date values have spaces in them: 01 JAN 2023&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might try different formats to see if there is one that will parse this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also try wrapping the date value in the RemoveBlanks() operator.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That would look something like this:&lt;/P&gt;
&lt;P&gt;Parse(RemoveBlanks('Date'n, _All_), 'Date9.')&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 13:14:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866973#M17077</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-03-29T13:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866978#M17079</link>
      <description>&lt;P&gt;Those strings are not in a style that the DATE informat will understand.&amp;nbsp; &amp;nbsp;It wants the day of the month first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using the&amp;nbsp;anydtdte11. informat instead.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 13:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866978#M17079</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-03-29T13:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866983#M17080</link>
      <description>&lt;P&gt;Hi Sam,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you again! I understand the logic you suggested. I applied the Remove Blanks. Then I applied Parse but still all I have is missings.Do you have any idea why this could be happenning?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="znhnm_0-1680097192899.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82154i96FAD115FCBB0897/image-size/medium?v=v2&amp;amp;px=400" role="button" title="znhnm_0-1680097192899.png" alt="znhnm_0-1680097192899.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="znhnm_1-1680097210211.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82155iC0E8B4E0D870152B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="znhnm_1-1680097210211.png" alt="znhnm_1-1680097210211.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 13:39:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866983#M17080</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2023-03-29T13:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866987#M17081</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Those strings are not in a style that the DATE informat will understand.&amp;nbsp; &amp;nbsp;It wants the day of the month first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try using the&amp;nbsp;anydtdte11. informat instead.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, this should work and should not require RemoveBlanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 13:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/866987#M17081</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-03-29T13:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/867001#M17082</link>
      <description>&lt;P&gt;Hi Sam,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am sorry, but I still do get the missings. Please let me know if you can see any reasons why his is happenning.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="znhnm_0-1680099353659.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82156i8CE51BDA7FF566B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="znhnm_0-1680099353659.png" alt="znhnm_0-1680099353659.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="znhnm_1-1680099387774.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/82157i882D1A6F8F89D7AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="znhnm_1-1680099387774.png" alt="znhnm_1-1680099387774.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/867001#M17082</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2023-03-29T14:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/867009#M17083</link>
      <description>It looks like you are applying anydtdte11 format to "BlanksRemoved", is that the value that has had RemoveBlanks() applied to it?&lt;BR /&gt;&lt;BR /&gt;Try parsing the original date.&lt;BR /&gt;&lt;BR /&gt;Also, just for a sanity check, please try this:&lt;BR /&gt;&lt;BR /&gt;Parse('JAN 23 2023', 'ANYDTDTE11.')&lt;BR /&gt;&lt;BR /&gt;That is, just parse this one value and see if it returns 23JAN2023 as we would expect.</description>
      <pubDate>Wed, 29 Mar 2023 14:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/867009#M17083</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-03-29T14:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/867018#M17084</link>
      <description>&lt;P&gt;Hi Sam,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes,&amp;nbsp;&lt;SPAN&gt;I'm applying anydtdte11 format to "BlanksRemoved", which is the value that has had RemoveBlanks() applied to it....&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then I tried parsing the original date (with blanks) with&amp;nbsp;'ANYDTDTE11.', and it worked. Thank you so much!!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/867018#M17084</guid>
      <dc:creator>znhnm</dc:creator>
      <dc:date>2023-03-29T14:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Categorical to Date</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/867028#M17086</link>
      <description>&lt;P&gt;Great! Thanks for letting us know &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 14:38:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Categorical-to-Date/m-p/867028#M17086</guid>
      <dc:creator>Sam_SAS</dc:creator>
      <dc:date>2023-03-29T14:38:33Z</dc:date>
    </item>
  </channel>
</rss>

