<?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: Tilde character before free text causes row to not e reasd in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902932#M43952</link>
    <description>I've added in: (compress=char) this solved the problem of the long processing time.&lt;BR /&gt;&lt;BR /&gt;(compress=yes) only gave 74 rows of data</description>
    <pubDate>Tue, 14 Nov 2023 08:04:04 GMT</pubDate>
    <dc:creator>river1</dc:creator>
    <dc:date>2023-11-14T08:04:04Z</dc:date>
    <item>
      <title>Tilde character before free text causes row to not e reasd</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902689#M43944</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am using SAS Enterprise Guide (Ver 8.3.8.206)&amp;nbsp; and I have imported a delimited file, which imported with no problems. However, in the column with free text there are sometimes tilde characters that are followed by text. If the tilde character was alone in the cell then it was read - but rows that had a tilde character preceding text have been ignored by SAS. Is this because SAS considers the character to be a logical not? Can I tell SAS to read these rows or do I need to data clean using different software to detect any special characters before I can use SAS? The dataset exceeds Excel's limits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The data looked something like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;EVENT_ID|FREE_TEXT|SECOND TEXT|CODE&amp;nbsp;&lt;/P&gt;&lt;P&gt;35434554654|~Description of free text|Second text box|23&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2023 07:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902689#M43944</guid>
      <dc:creator>river1</dc:creator>
      <dc:date>2023-11-12T07:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Tilde character before free text causes row to not e reasd</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902691#M43945</link>
      <description>&lt;P&gt;Try this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want (compress=yes);
infile "path_to_your_file" dlm="|" dsd firstobs=2 truncover;
length
  event_id $11 /* adapt if necessary */
  free_text $32767
  second_text $32767
  code $2 /* adapt if necessary */
;
input
  event_id
  free_text
  second_text
  code
;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;If this does not work as intended, post the log by copy/pasting it into a window opened with this button:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54552i914D97BE1B0F21E5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" alt="Bildschirmfoto 2020-04-07 um 08.32.59.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 12 Nov 2023 18:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902691#M43945</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-12T18:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: Tilde character before free text causes row to not e reasd</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902715#M43946</link>
      <description>&lt;P&gt;What do you mean by "imported"?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you use some GUI tool to import a file?&amp;nbsp; What code did it generate?&lt;/P&gt;
&lt;P&gt;Did you write some code yourself?&lt;/P&gt;
&lt;P&gt;What did the LOG look like?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The string you posted does not cause any trouble for SAS to read.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
  infile datalines dsd dlm='|' truncover firstobs=2;
  input EVENT_ID :$11. FREE_TEXT :$40. SECOND_TEXT :$30. CODE ;
datalines;
EVENT_ID|FREE_TEXT|SECOND TEXT|CODE 
35434554654|~Description of free text|Second text box|23
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result&lt;/P&gt;
&lt;PRE&gt;Obs     EVENT_ID              FREE_TEXT              SECOND_TEXT      CODE

 1     35434554654    ~Description of free text    Second text box     23

&lt;/PRE&gt;</description>
      <pubDate>Sun, 12 Nov 2023 18:21:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902715#M43946</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-11-12T18:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Tilde character before free text causes row to not e reasd</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902926#M43951</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help, that worked perfectly. I had a date variable so I had to add a formatted informat to the code. It took a while to generate enough code to view the rows with the tilde issue. I still have a few problems with the dataset but I’ve started a new question thread.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data want&amp;nbsp; ;
infile "D:\file_location.txt" dlm="|" dsd firstobs=2 truncover;
length
&amp;nbsp; EVENT_ID $20. /* adapt if necessary */
&amp;nbsp; Num_1 4.
&amp;nbsp; Num_2 5.
&amp;nbsp; CHAR_1 $5.
&amp;nbsp; CHAR_2 $32767.
&amp;nbsp; CHAR_3 $32767.
&amp;nbsp; CHAR_4 $32767.
&amp;nbsp; CHAR_5 $32767.
&amp;nbsp; DATE_1 8.
&amp;nbsp; UNSURE $3.
&amp;nbsp; NUM_3 5.;
&amp;nbsp;    informat DATE_1 mmddyy10.;
&amp;nbsp; &amp;nbsp;&amp;nbsp; format DATE_1 yymmddn8. ;

input
&amp;nbsp; EVENT_ID
&amp;nbsp; Num_1
&amp;nbsp; Num_2
&amp;nbsp; Num_1
&amp;nbsp; CHAR_1
&amp;nbsp; CHAR_2
&amp;nbsp; CHAR_3
&amp;nbsp; CHAR_4
&amp;nbsp; CHAR_5
&amp;nbsp; DATE_1
&amp;nbsp; UNSURE
&amp;nbsp; NUM_3
;
run;

&lt;/PRE&gt;</description>
      <pubDate>Tue, 14 Nov 2023 07:07:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902926#M43951</guid>
      <dc:creator>river1</dc:creator>
      <dc:date>2023-11-14T07:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Tilde character before free text causes row to not e reasd</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902932#M43952</link>
      <description>I've added in: (compress=char) this solved the problem of the long processing time.&lt;BR /&gt;&lt;BR /&gt;(compress=yes) only gave 74 rows of data</description>
      <pubDate>Tue, 14 Nov 2023 08:04:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902932#M43952</guid>
      <dc:creator>river1</dc:creator>
      <dc:date>2023-11-14T08:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Tilde character before free text causes row to not e reasd</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902935#M43953</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/420704"&gt;@river1&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;I've added in: (compress=char) this solved the problem of the long processing time.&lt;BR /&gt;&lt;BR /&gt;(compress=yes) only gave 74 rows of data&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;No difference there, CHAR and YES are the same, see&amp;nbsp;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/ledsoptsref/n014hy7167t2asn1j7qo99qv16wa.htm" target="_blank" rel="noopener"&gt;COMPRESS= Data Set Option&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The COMPRESS= data set option only influences the space requirement (and, indirectly, the time needed to write it) of the resulting dataset. It does NOT have an impact on the number of observations read from the external file; this can be influenced by the TERMSTR= option of the INFILE statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If two different versions of code give results that puzzle you, post the complete logs as already mentioned.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Nov 2023 08:20:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/902935#M43953</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-14T08:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Tilde character before free text causes row to not e reasd</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/903137#M43954</link>
      <description>&lt;P&gt;My mistake&amp;nbsp;compress=yes ran faster than&amp;nbsp;compress=char. I think it was a problem with my computer when I ran the initial code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;compress=yes

Log:
NOTE: DATA statement used (Total process time):
      real time           4:33.32
      cpu time            2:53.39

compress=char&lt;BR /&gt;&lt;BR /&gt;log: 
NOTE: DATA statement used (Total process time):
      real time           4:49.08
      cpu time            3:33.51

&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 08:36:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/903137#M43954</guid>
      <dc:creator>river1</dc:creator>
      <dc:date>2023-11-15T08:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Tilde character before free text causes row to not e reasd</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/903189#M43958</link>
      <description>&lt;P&gt;As already stated, CHAR and YES are identical. Different runtimes point to different load on the SAS computer.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Nov 2023 13:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Tilde-character-before-free-text-causes-row-to-not-e-reasd/m-p/903189#M43958</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-15T13:20:22Z</dc:date>
    </item>
  </channel>
</rss>

