<?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: If.Variable and Infile Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/If-Variable-and-Infile-Statement/m-p/309592#M66663</link>
    <description>&lt;P&gt;To use a first.Variable statement you have to have a by statement in your code?&lt;/P&gt;</description>
    <pubDate>Sun, 06 Nov 2016 15:31:01 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2016-11-06T15:31:01Z</dc:date>
    <item>
      <title>If.Variable and Infile Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-Variable-and-Infile-Statement/m-p/309590#M66661</link>
      <description>&lt;P&gt;Is it possible to use a first.variable statement and an infile? &amp;nbsp;I am tryin to sum up the album cost for each genre without using two data steps, currently the log says genre is unintialized. &amp;nbsp;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13114i75F14E2FF305FCD8/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="sas code.jpg" title="sas code.jpg" /&gt;</description>
      <pubDate>Sun, 06 Nov 2016 15:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-Variable-and-Infile-Statement/m-p/309590#M66661</guid>
      <dc:creator>aweaver</dc:creator>
      <dc:date>2016-11-06T15:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: If.Variable and Infile Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-Variable-and-Infile-Statement/m-p/309592#M66663</link>
      <description>&lt;P&gt;To use a first.Variable statement you have to have a by statement in your code?&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 15:31:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-Variable-and-Infile-Statement/m-p/309592#M66663</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2016-11-06T15:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: If.Variable and Infile Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-Variable-and-Infile-Statement/m-p/309600#M66667</link>
      <description>&lt;P&gt;First. and last. are only available with a by statement. Variables in the by statement must be in the input&amp;nbsp;&lt;U&gt;dataset&lt;/U&gt;.&lt;/P&gt;
&lt;P&gt;So the answer to your question is no.&lt;/P&gt;
&lt;P&gt;Read the raw data into a dataset, then you can use by processing.&lt;/P&gt;</description>
      <pubDate>Sun, 06 Nov 2016 18:26:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-Variable-and-Infile-Statement/m-p/309600#M66667</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-06T18:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: If.Variable and Infile Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/If-Variable-and-Infile-Statement/m-p/309748#M66738</link>
      <description>&lt;P&gt;Depending on what you actually want for your final output one of the report procedures such as Proc Report or Tabulate might be more in line. These both support creating&amp;nbsp;group totals based and often do not require a separate sort step.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2016 15:23:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/If-Variable-and-Infile-Statement/m-p/309748#M66738</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-11-07T15:23:56Z</dc:date>
    </item>
  </channel>
</rss>

