<?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: Read Pipe Delimited File in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270194#M53647</link>
    <description>yes that's true.this should be the out put and I don't in which column single quote will be there</description>
    <pubDate>Thu, 12 May 2016 20:22:28 GMT</pubDate>
    <dc:creator>PravinMishra</dc:creator>
    <dc:date>2016-05-12T20:22:28Z</dc:date>
    <item>
      <title>Read Pipe Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270115#M53621</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am faicng an issue while reading Pipe delimeted file. there is a single quotes in between two field due to which its getting clubed together in one field.&lt;/P&gt;
&lt;P&gt;Input data&amp;nbsp;&lt;/P&gt;
&lt;P&gt;123456789|'|9820 SW 120TH ST| |&lt;/P&gt;
&lt;P&gt;OUTPUT DATA&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;123456789&lt;/SPAN&gt;&lt;FONT color="#FF6600"&gt; |9820 SW 120TH ST| |&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i am using below code&lt;/P&gt;
&lt;P&gt;DATA NEW;&lt;BR /&gt;LENGTH ACCOUNT $16. addr_1 $30. addr_2 $30. addr_3 $30. addr_4 $30. ;&lt;BR /&gt;INFILE "/filelocation/test.txt" DSD DLM='|' ;&lt;BR /&gt;INPUT &lt;SPAN&gt;ACCOUNT &amp;nbsp;addr_1 &amp;nbsp;addr_2 &amp;nbsp;addr_3 &amp;nbsp;addr_4 .&lt;/SPAN&gt;$ ;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Highlighted one getting combined into one.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;can anyone please suggest me how to handle it. and I am not sure which row and column can have this value.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 17:54:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270115#M53621</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2016-05-12T17:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Read Pipe Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270125#M53623</link>
      <description>&lt;P&gt;Remove DSD option&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 18:13:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270125#M53623</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-12T18:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Read Pipe Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270132#M53624</link>
      <description>&lt;P&gt;In your output data set, which variable should hold the value:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;9820 SW 120TH ST&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would it make a difference if this variable were shifted over, and became the value of ADDR_1?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would single quotes ever appear anywhere else within your data, other than in the characters&amp;nbsp; |'|&amp;nbsp; ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 18:33:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270132#M53624</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-05-12T18:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read Pipe Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270142#M53629</link>
      <description>I tried removing DSD option but now data is moving  ahead of the column.</description>
      <pubDate>Thu, 12 May 2016 19:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270142#M53629</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2016-05-12T19:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: Read Pipe Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270143#M53630</link>
      <description>it should go to addr2.and we should place in there column.we don't know where that single quotes with appear. and after removing DSD option data is moving ahead of the  column</description>
      <pubDate>Thu, 12 May 2016 19:07:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270143#M53630</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2016-05-12T19:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Read Pipe Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270171#M53638</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/36733"&gt;@PravinMishra﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cannot replicate your issue:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATA NEW;
LENGTH ACCOUNT $16 addr_1 $30 addr_2 $30 addr_3 $30 addr_4 $30;
INFILE cards DSD DLM='|' ;
INPUT ACCOUNT addr_1 addr_2 addr_3 addr_4;
cards;
123456789|'|9820 SW 120TH ST| |
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt; ACCOUNT     addr_1         addr_2         addr_3    addr_4

123456789      '       9820 SW 120TH ST&lt;/PRE&gt;
&lt;P&gt;(Same result when reading from an external file.)&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 19:46:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270171#M53638</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-05-12T19:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read Pipe Delimited File</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270194#M53647</link>
      <description>yes that's true.this should be the out put and I don't in which column single quote will be there</description>
      <pubDate>Thu, 12 May 2016 20:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Read-Pipe-Delimited-File/m-p/270194#M53647</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2016-05-12T20:22:28Z</dc:date>
    </item>
  </channel>
</rss>

