<?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: infile statement with filter in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-with-filter/m-p/806204#M317608</link>
    <description>&lt;P&gt;Open the text file with an editor and copy a few lines into a code box here.&lt;/P&gt;
&lt;P&gt;Also post the log from your step into a code box.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Apr 2022 08:02:58 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2022-04-06T08:02:58Z</dc:date>
    <item>
      <title>infile statement with filter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-with-filter/m-p/806202#M317607</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data where_infile;
infile'/home/u35263349/My_Folder/class_ds.txt';
input Name$  Sex$  Age Height Weight ;
if Sex='F'; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here i am import sashelp.class txt file&amp;nbsp; and filter with if Clause&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where cannot work with infile statement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but i didn't get output even if using IF statement where went work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 06 Apr 2022 07:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-with-filter/m-p/806202#M317607</guid>
      <dc:creator>BrahmanandaRao</dc:creator>
      <dc:date>2022-04-06T07:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement with filter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-with-filter/m-p/806204#M317608</link>
      <description>&lt;P&gt;Open the text file with an editor and copy a few lines into a code box here.&lt;/P&gt;
&lt;P&gt;Also post the log from your step into a code box.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-with-filter/m-p/806204#M317608</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-04-06T08:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement with filter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-with-filter/m-p/806206#M317609</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data where_infile;
infile'/home/u35263349/My_Folder/class_ds.txt';
input Name$  Sex$  Age Height Weight ;
if Sex='F'; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Here i am import sashelp.class txt file&amp;nbsp; and filter with if Clause&amp;nbsp;&lt;/P&gt;
&lt;P&gt;where cannot work with infile statement&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but i didn't get output even if using IF statement where went work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;STRONG&gt;Show the log that was created when the code ran.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Always when output was not as expected.&lt;/P&gt;
&lt;P&gt;Copy the text from the LOG and paste into a text box opened on the forum with the &amp;lt;/&amp;gt; icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 08:08:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-with-filter/m-p/806206#M317609</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-04-06T08:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: infile statement with filter</title>
      <link>https://communities.sas.com/t5/SAS-Programming/infile-statement-with-filter/m-p/806309#M317650</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265860"&gt;@BrahmanandaRao&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;It is possible that the columns are tab separated. Other wise Your code code should work. If it is indeed tab separated use the following modification&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data where_infile;
infile'/home/u35263349/My_Folder/class_ds.txt' dlm ='09'x dsd missover;
input Name $  Sex $  Age Height Weight ;
if Sex='F'; 
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 14:48:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/infile-statement-with-filter/m-p/806309#M317650</guid>
      <dc:creator>Sajid01</dc:creator>
      <dc:date>2022-04-06T14:48:08Z</dc:date>
    </item>
  </channel>
</rss>

