<?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 Delimiter in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Delimiter/m-p/64626#M18356</link>
    <description>i have dataset with delimiter in beetween the observations i want all the delimiters should be replaced with comma.&lt;BR /&gt;
&lt;BR /&gt;
data c;&lt;BR /&gt;
input id$ sal$;&lt;BR /&gt;
if id ='%' then id=',';&lt;BR /&gt;
cards;&lt;BR /&gt;
kool-%  ra/,'l&lt;BR /&gt;
nani(^/   mo-'&lt;BR /&gt;
run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
output should be like this&lt;BR /&gt;
kool,,  ra,,,,&lt;BR /&gt;
nani,,,   mo,,</description>
    <pubDate>Fri, 05 Dec 2008 06:31:28 GMT</pubDate>
    <dc:creator>R_Win</dc:creator>
    <dc:date>2008-12-05T06:31:28Z</dc:date>
    <item>
      <title>Delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delimiter/m-p/64626#M18356</link>
      <description>i have dataset with delimiter in beetween the observations i want all the delimiters should be replaced with comma.&lt;BR /&gt;
&lt;BR /&gt;
data c;&lt;BR /&gt;
input id$ sal$;&lt;BR /&gt;
if id ='%' then id=',';&lt;BR /&gt;
cards;&lt;BR /&gt;
kool-%  ra/,'l&lt;BR /&gt;
nani(^/   mo-'&lt;BR /&gt;
run;&lt;BR /&gt;
proc print;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
output should be like this&lt;BR /&gt;
kool,,  ra,,,,&lt;BR /&gt;
nani,,,   mo,,</description>
      <pubDate>Fri, 05 Dec 2008 06:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delimiter/m-p/64626#M18356</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2008-12-05T06:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delimiter/m-p/64627#M18357</link>
      <description>SAS PROC IMPORT and EXPORT may be suitable for your requirements.&lt;BR /&gt;
&lt;BR /&gt;
As well, you may find that the DATA step approach will work, as you have described in your forum post.  For a DATA step approach, you can use the DLM= option on both the INFILE (also include the DSD parameter) and the FILE statements, along with the INPUT and PUT statements to read in and out your file.&lt;BR /&gt;
&lt;BR /&gt;
The SAS support website  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  contains product documentation and supplemental technical user community (SUGI / SGF) papers with examples on this topic.  I used the site's SEARCH facility and found one technote referenced below for the inputting perspective.  Have a look at the SAS Base Language Reference: Dictionary for using the FILE statement for the output perspective.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/techsup/technote/ts673.html" target="_blank"&gt;http://support.sas.com/techsup/technote/ts673.html&lt;/A&gt;</description>
      <pubDate>Fri, 05 Dec 2008 07:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delimiter/m-p/64627#M18357</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2008-12-05T07:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delimiter/m-p/64628#M18358</link>
      <description>can any one help me inthis</description>
      <pubDate>Thu, 11 Dec 2008 08:26:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delimiter/m-p/64628#M18358</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2008-12-11T08:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Delimiter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Delimiter/m-p/64629#M18359</link>
      <description>Use the function 'translate()' for your ID variable.&lt;BR /&gt;
If you don't know all possible special characters then a more generic solution would be possible using Regular Expressions - but it's also more difficult to code...&lt;BR /&gt;
HTH&lt;BR /&gt;
Patrick</description>
      <pubDate>Thu, 11 Dec 2008 09:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Delimiter/m-p/64629#M18359</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2008-12-11T09:17:17Z</dc:date>
    </item>
  </channel>
</rss>

