<?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: Reg:REplace tab with pipe or ^ in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102282#M21392</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABS are not treated the sames as spaces unless you tell it differently on the INFILE statement.&lt;/P&gt;&lt;P&gt;You could use DLM='2009'x to treate space and tab as delimiters&lt;/P&gt;&lt;P&gt;Or use EXPANDTABS to have it convert the tabs to spaces on the way into the input buffer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2012 16:21:48 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2012-08-23T16:21:48Z</dc:date>
    <item>
      <title>Reg:REplace tab with pipe or ^</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102278#M21388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data l i am having a record in a table&amp;nbsp; that data in that record is having with tab Ex: OBS_Data done this ok Now i want to split it in to obs Obs1&amp;nbsp; -Done Obs2- this obs3-ok or is there any way in the data that we can replace tab with | or ^ Ex:&amp;nbsp; done^this^ok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 13:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102278#M21388</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2012-08-23T13:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:REplace tab with pipe or ^</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102279#M21389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your question isn't very clear to me.&amp;nbsp; If you have a string and want to replace the tab character with a | or ^, then you can just use the TRANSWRD function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;out = transwrd(in,'09'x,"|");&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'09'x is the hex code for a tab in ASCII.&amp;nbsp; If it is an EBCDIC code, you'll need to look it up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Doc Muhlbaier&lt;/P&gt;&lt;P&gt;Duke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 14:18:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102279#M21389</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2012-08-23T14:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:REplace tab with pipe or ^</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102280#M21390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;done this ok i have tryed on this data for example it shd be Input: done this ok output shd be done|this|ok you can che the text file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 14:30:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102280#M21390</guid>
      <dc:creator>R_Win</dc:creator>
      <dc:date>2012-08-23T14:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:REplace tab with pipe or ^</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102281#M21391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably want the double trailing @@, which allow you to easily read multiple observations from a single input data line.&amp;nbsp; I believe the tabs will just be treated as white space (so SAS will see each tab-deliminted value as a single variable), so you don't need any DLM stuff unless you have contiguous tabs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile datalines&lt;/P&gt;&lt;P&gt;&amp;nbsp; input text : $10. @@;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;done&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ok&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 16:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102281#M21391</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2012-08-23T16:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reg:REplace tab with pipe or ^</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102282#M21392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TABS are not treated the sames as spaces unless you tell it differently on the INFILE statement.&lt;/P&gt;&lt;P&gt;You could use DLM='2009'x to treate space and tab as delimiters&lt;/P&gt;&lt;P&gt;Or use EXPANDTABS to have it convert the tabs to spaces on the way into the input buffer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2012 16:21:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reg-REplace-tab-with-pipe-or/m-p/102282#M21392</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-08-23T16:21:48Z</dc:date>
    </item>
  </channel>
</rss>

