<?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: detecting if text correctly arranged in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/detecting-if-text-correctly-arranged/m-p/764424#M242137</link>
    <description>&lt;P&gt;Hi Chris, the string can contain any characters potentially and its possible no space was used e.g. WORD1,WORD2 or WORD1.WORD2.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 09:34:53 GMT</pubDate>
    <dc:creator>kalbo</dc:creator>
    <dc:date>2021-08-27T09:34:53Z</dc:date>
    <item>
      <title>detecting if text correctly arranged</title>
      <link>https://communities.sas.com/t5/SAS-Programming/detecting-if-text-correctly-arranged/m-p/764420#M242134</link>
      <description>&lt;P&gt;Hi I want to see if text values are correctly separated by a comma then space. However some values can start with SUPP__ and QNAM can contain a period (.) e.g. SUPPAE.START and QNAM.STOP.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example these values are correctly arranged with a comma and single space:&lt;/P&gt;&lt;P&gt;SUBJID, SEQUENCE, SUPPAE.START, QNAM.STOP&lt;/P&gt;&lt;P&gt;SUBJID, START, SUPPCM.STOP&lt;/P&gt;&lt;P&gt;SUBJID, ID, QNAM.START&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These are not correctly arranged and need to be detected:&lt;/P&gt;&lt;P&gt;SUBJID. SEQUENCE, SUPPAE.START. QNAM.STOP&lt;/P&gt;&lt;P&gt;SUBJID,START*SUPPCM.STOP&lt;/P&gt;&lt;P&gt;START; STOP;&lt;/P&gt;&lt;P&gt;START. STOP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think we can use prxchange or similar prx funciton.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 09:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/detecting-if-text-correctly-arranged/m-p/764420#M242134</guid>
      <dc:creator>kalbo</dc:creator>
      <dc:date>2021-08-27T09:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: detecting if text correctly arranged</title>
      <link>https://communities.sas.com/t5/SAS-Programming/detecting-if-text-correctly-arranged/m-p/764423#M242136</link>
      <description>&lt;P&gt;In other words, detect a space preceded by something other than comma, or a comma without following space?&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;if prxmatch('/[^,] |,\S/', trim(VAR));&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 09:29:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/detecting-if-text-correctly-arranged/m-p/764423#M242136</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-08-27T09:29:05Z</dc:date>
    </item>
    <item>
      <title>Re: detecting if text correctly arranged</title>
      <link>https://communities.sas.com/t5/SAS-Programming/detecting-if-text-correctly-arranged/m-p/764424#M242137</link>
      <description>&lt;P&gt;Hi Chris, the string can contain any characters potentially and its possible no space was used e.g. WORD1,WORD2 or WORD1.WORD2.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 09:34:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/detecting-if-text-correctly-arranged/m-p/764424#M242137</guid>
      <dc:creator>kalbo</dc:creator>
      <dc:date>2021-08-27T09:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: detecting if text correctly arranged</title>
      <link>https://communities.sas.com/t5/SAS-Programming/detecting-if-text-correctly-arranged/m-p/764425#M242138</link>
      <description>&lt;P&gt;These 2 examples should be treated as expected:&lt;/P&gt;
&lt;P&gt;The first is invalid, the second is valid.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 09:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/detecting-if-text-correctly-arranged/m-p/764425#M242138</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-08-27T09:43:50Z</dc:date>
    </item>
  </channel>
</rss>

