<?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: remove if dilimiter as an enter character in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/remove-if-dilimiter-as-an-enter-character/m-p/37685#M7487</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this your requirement?&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input field1 $ field2 $ field3 $;&lt;/P&gt;&lt;P&gt;infile datalines&lt;STRONG&gt; flowover&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;f11&lt;/P&gt;&lt;P&gt;f12&lt;/P&gt;&lt;P&gt;f13&lt;/P&gt;&lt;P&gt;f21&lt;/P&gt;&lt;P&gt;f22&lt;/P&gt;&lt;P&gt;f23&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jan 2012 07:04:45 GMT</pubDate>
    <dc:creator>DCL</dc:creator>
    <dc:date>2012-01-25T07:04:45Z</dc:date>
    <item>
      <title>remove if dilimiter as an enter character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-if-dilimiter-as-an-enter-character/m-p/37684#M7486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when delimeter is , or *,&amp;amp;,^ we are use dlm in input . If enter charecter is a delimiter how we remove from the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ashwini.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 06:09:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-if-dilimiter-as-an-enter-character/m-p/37684#M7486</guid>
      <dc:creator>Ashwini</dc:creator>
      <dc:date>2012-01-25T06:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: remove if dilimiter as an enter character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-if-dilimiter-as-an-enter-character/m-p/37685#M7487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this your requirement?&lt;/P&gt;&lt;P&gt;﻿&lt;/P&gt;&lt;P&gt;data test;&lt;/P&gt;&lt;P&gt;input field1 $ field2 $ field3 $;&lt;/P&gt;&lt;P&gt;infile datalines&lt;STRONG&gt; flowover&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;f11&lt;/P&gt;&lt;P&gt;f12&lt;/P&gt;&lt;P&gt;f13&lt;/P&gt;&lt;P&gt;f21&lt;/P&gt;&lt;P&gt;f22&lt;/P&gt;&lt;P&gt;f23&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 07:04:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-if-dilimiter-as-an-enter-character/m-p/37685#M7487</guid>
      <dc:creator>DCL</dc:creator>
      <dc:date>2012-01-25T07:04:45Z</dc:date>
    </item>
    <item>
      <title>remove if dilimiter as an enter character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-if-dilimiter-as-an-enter-character/m-p/37686#M7488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll need to know the hex value of the ASCII code for the character you which are referring to as "ENTER" (or EBCDIC code, if you are running on a mainframe).&amp;nbsp; In my expereince, Windows systems use a combination of carriage return (CR-hex code '0D') and Line Feed (LF - hex code '0A') at the end of each line in a text file, most Unix or LINUX systems use just the LF ('0A') and mainframes use NEw Line (NEL - hex code '15').&amp;nbsp; When you are reading a text file in SAS on the same type operating system used to create the file, there is usually no need to think about these differences.&amp;nbsp; The default behavior in SAS is "FLOWOVER" which means that SAS just reads in another line if it encounters an end of line marker before it has enough data to satisfy the INPUT statement.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trouble can sometimes be encoutered when reading in data created on a different operating system.&amp;nbsp; In any case, to specify a non-printable character (such as an LF) as a delimiter, you can specify it using a hex literal.&amp;nbsp; For example:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp;&amp;nbsp; INFILE "C:\temp\my.txt" dlm='0A'x; &lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&amp;nbsp; If that's not what you are looking for, posting a snippet of your data and a copy of the code you are worknig on will help us help you better.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 14:11:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-if-dilimiter-as-an-enter-character/m-p/37686#M7488</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2012-01-25T14:11:43Z</dc:date>
    </item>
    <item>
      <title>remove if dilimiter as an enter character</title>
      <link>https://communities.sas.com/t5/SAS-Programming/remove-if-dilimiter-as-an-enter-character/m-p/37687#M7489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conversely, if it is going to a new record for each variable, while not simply include '/' in your input statement and read each variable from the next line?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jan 2012 15:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/remove-if-dilimiter-as-an-enter-character/m-p/37687#M7489</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-01-25T15:30:06Z</dc:date>
    </item>
  </channel>
</rss>

