<?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: Converting ISO8601 interval string to time/numeric format in VA in SAS Visual Analytics</title>
    <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/465749#M10310</link>
    <description>&lt;P&gt;Sorry, can't help then as I don't use VA.&amp;nbsp; In coding you would use formats like:&lt;/P&gt;
&lt;PRE&gt;want=input(have,&amp;lt;format&amp;gt;);
&lt;/PRE&gt;
&lt;P&gt;Don't even know if you can do coding in VA.&lt;/P&gt;</description>
    <pubDate>Tue, 29 May 2018 16:30:19 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2018-05-29T16:30:19Z</dc:date>
    <item>
      <title>Converting ISO8601 interval string to time/numeric format in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/465703#M10307</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the last week I have been using SAS VA for visualization purposes. Now I am hoping to convert strings expressed in ISO8601 interval format, such as "-PT20M" and "PT24H", to time (preferable) or numeric format so that "-PT20M" would be -00:20:00 in time format or just -20 in numeric format and respectively "PT24H" would be 24:00:00 or 24. Answers presented &lt;A href="https://communities.sas.com/t5/General-SAS-Programming/Convert-ISO8601-string-to-datetime-format/m-p/421077" target="_self"&gt;here&lt;/A&gt; are only applicable to base SAS situations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am starting to wonder whether I have to implement some sort of IF ELSE fix...I hope not...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answers in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 13:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/465703#M10307</guid>
      <dc:creator>Laine</dc:creator>
      <dc:date>2018-05-29T13:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Converting ISO8601 interval string to time/numeric format in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/465710#M10308</link>
      <description>&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n0verk17pchh4vn1akrrv0b5w3r0.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n0verk17pchh4vn1akrrv0b5w3r0.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;There is a section for ISO formats.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 13:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/465710#M10308</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-29T13:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Converting ISO8601 interval string to time/numeric format in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/465744#M10309</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt; and thank you for your swift reply!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm afraid that I have already looked into that page and found it useless because firstly it doesn't provide information about their usage and secondly because SAS VA only seems to support four formats for strings (uppercasing, putting the string in double quotes, taking it raw "$w.d" and a fourth I can't remember at the moment.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 16:10:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/465744#M10309</guid>
      <dc:creator>Laine</dc:creator>
      <dc:date>2018-05-29T16:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Converting ISO8601 interval string to time/numeric format in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/465749#M10310</link>
      <description>&lt;P&gt;Sorry, can't help then as I don't use VA.&amp;nbsp; In coding you would use formats like:&lt;/P&gt;
&lt;PRE&gt;want=input(have,&amp;lt;format&amp;gt;);
&lt;/PRE&gt;
&lt;P&gt;Don't even know if you can do coding in VA.&lt;/P&gt;</description>
      <pubDate>Tue, 29 May 2018 16:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/465749#M10310</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-05-29T16:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Converting ISO8601 interval string to time/numeric format in VA</title>
      <link>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/466381#M10319</link>
      <description>&lt;P&gt;You should convert these duration values before loading the data to be used by Visual Analytics, since there are no operators within VA to handle this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Find below an example on how to convert an ISO duration value into a SAS time value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  infile cards;
  input iso8601_int : $32.;

  length newtime 8;
  call is8601_convert("du", "du", iso8601_int, newtime);

  format newtime time.;
cards;
-PT20M
PT24H
PT25H
P3D
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The $N8601B. informat converts a duration into a character representation, that later can be used with the &lt;A href="http://go.documentation.sas.com/?docsetId=lefunctionsref&amp;amp;docsetTarget=p0bhy7ndmdivmmn10b2okmbgiqmj.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_self"&gt;CALL IS8601_CONVERT&lt;/A&gt; routine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See also this paper&amp;nbsp;&lt;A href="https://www.pharmasug.org/proceedings/2012/DS/PharmaSUG-2012-DS22-SAS.pdf" target="_blank"&gt;https://www.pharmasug.org/proceedings/2012/DS/PharmaSUG-2012-DS22-SAS.pdf&lt;/A&gt; for additional information&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 10:05:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Visual-Analytics/Converting-ISO8601-interval-string-to-time-numeric-format-in-VA/m-p/466381#M10319</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-05-31T10:05:27Z</dc:date>
    </item>
  </channel>
</rss>

