<?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: How to insert one symbol between characters in the sequence? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345327#M79447</link>
    <description>It works!!!!&lt;BR /&gt;Thank you very much!!!!&lt;BR /&gt;&lt;BR /&gt;JC</description>
    <pubDate>Wed, 29 Mar 2017 11:30:34 GMT</pubDate>
    <dc:creator>JohnChen_TW</dc:creator>
    <dc:date>2017-03-29T11:30:34Z</dc:date>
    <item>
      <title>How to insert one symbol between characters in the sequence?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345301#M79430</link>
      <description>&lt;P&gt;Hi, I am using SAS 9.3.&lt;/P&gt;&lt;P&gt;Does anyone have suggestions to resolve the following issue?&lt;/P&gt;&lt;P&gt;Now, I have one variable recorded as: &lt;STRONG&gt;Birthday Sex Height Weight&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and the expected result is: &lt;STRONG&gt;Birthday, Sex, Height, Weight&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 10:26:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345301#M79430</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2017-03-29T10:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert one symbol between characters in the sequence?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345311#M79437</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;if I understand correctly, you have a variable, say INFO that takes values such as "02/12 M 60 120" and you would like to have four distinct variables.&lt;BR /&gt;Then you can use the scan function&lt;BR /&gt;&lt;BR /&gt;birthday=scan(INFO,1," ");&lt;BR /&gt;sex=scan(INFO,2," ");&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 29 Mar 2017 10:43:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345311#M79437</guid>
      <dc:creator>gamotte</dc:creator>
      <dc:date>2017-03-29T10:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert one symbol between characters in the sequence?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345312#M79438</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data x;
x='Birthday Sex Height Weight';
y=prxchange('s/\s+/, /',-1,strip(x));
run;
proc print;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Mar 2017 10:48:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345312#M79438</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-29T10:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert one symbol between characters in the sequence?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345315#M79439</link>
      <description>&lt;P&gt;It works. Thank for your help!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;'s/\s+/,/'&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp;fixed?&lt;/P&gt;&lt;P&gt;Can I use PRXCHANGE in macro? Perhaps, %let a=%sysfunc(prxchange('s/\s+/,/',-1,strip(x))); ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;JC&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 10:59:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345315#M79439</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2017-03-29T10:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert one symbol between characters in the sequence?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345319#M79442</link>
      <description>&lt;P&gt;Yes.I add a white blank after comma.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; %let x=sex weight height;
 %let a=%sysfunc(prxchange(%str(s/\s+/, /),-1,&amp;amp;x)); 
 
 %put &amp;amp;a ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 11:08:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345319#M79442</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-03-29T11:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert one symbol between characters in the sequence?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345327#M79447</link>
      <description>It works!!!!&lt;BR /&gt;Thank you very much!!!!&lt;BR /&gt;&lt;BR /&gt;JC</description>
      <pubDate>Wed, 29 Mar 2017 11:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-insert-one-symbol-between-characters-in-the-sequence/m-p/345327#M79447</guid>
      <dc:creator>JohnChen_TW</dc:creator>
      <dc:date>2017-03-29T11:30:34Z</dc:date>
    </item>
  </channel>
</rss>

