<?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: using the good option with infile statement in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/using-the-good-option-with-infile-statement/m-p/917445#M44352</link>
    <description>&lt;P&gt;If you want to get the entire content of the input buffer into the&amp;nbsp;&lt;STRONG&gt;text&lt;/STRONG&gt; variable, why not just use an assignment statement, like&amp;nbsp;this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename filelist pipe "find /folder1/sasdata/TestActuariat/ -type f ";
data fileslisting2;
   length text $1000.;
   infile filelist;
   input;
   text=_infile_;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This technique will capture all of the text, even if it contains a pipe character (|).&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 20:34:51 GMT</pubDate>
    <dc:creator>SASJedi</dc:creator>
    <dc:date>2024-02-22T20:34:51Z</dc:date>
    <item>
      <title>using the good option with infile statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/using-the-good-option-with-infile-statement/m-p/917444#M44351</link>
      <description>&lt;P&gt;A colleague suggested me to use the option dlm='|' to force to read the complete line.&lt;/P&gt;
&lt;P&gt;But I wonder if there is a better option or combined options to do that .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's the code :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename filelist pipe "find /folder1/sasdata/TestActuariat/ -type f ";
data fileslisting2;
length text $1000.;
infile filelist dlm='|';
input text;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here's an observation of fileslisting2;&lt;/P&gt;
&lt;P&gt;Does the option dlm='|' is a good one or can we do better?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/folder1/sasdata/TestActuariat/Conversion Classic/Cycle3/gc/habi/gc_res_prop_jul2018.dpf.00010f97.0.1.spds9&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without the good option we get:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/folder1/sasdata/TestActuariat/Conversion&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 20:26:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/using-the-good-option-with-infile-statement/m-p/917444#M44351</guid>
      <dc:creator>alepage</dc:creator>
      <dc:date>2024-02-22T20:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: using the good option with infile statement</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/using-the-good-option-with-infile-statement/m-p/917445#M44352</link>
      <description>&lt;P&gt;If you want to get the entire content of the input buffer into the&amp;nbsp;&lt;STRONG&gt;text&lt;/STRONG&gt; variable, why not just use an assignment statement, like&amp;nbsp;this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename filelist pipe "find /folder1/sasdata/TestActuariat/ -type f ";
data fileslisting2;
   length text $1000.;
   infile filelist;
   input;
   text=_infile_;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This technique will capture all of the text, even if it contains a pipe character (|).&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 20:34:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/using-the-good-option-with-infile-statement/m-p/917445#M44352</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2024-02-22T20:34:51Z</dc:date>
    </item>
  </channel>
</rss>

