<?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 Infile and Input in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Infile-and-Input/m-p/275163#M54995</link>
    <description>&lt;P&gt;why can't input comes before infile ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data a;&lt;/P&gt;&lt;P&gt;infile "path";&lt;/P&gt;&lt;P&gt;input a b ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And how PDV works,like first it read the values from infile and then it assigns the variable in PDV.&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;</description>
    <pubDate>Sat, 04 Jun 2016 06:48:06 GMT</pubDate>
    <dc:creator>pawandh</dc:creator>
    <dc:date>2016-06-04T06:48:06Z</dc:date>
    <item>
      <title>Infile and Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-and-Input/m-p/275163#M54995</link>
      <description>&lt;P&gt;why can't input comes before infile ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data a;&lt;/P&gt;&lt;P&gt;infile "path";&lt;/P&gt;&lt;P&gt;input a b ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And how PDV works,like first it read the values from infile and then it assigns the variable in PDV.&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;</description>
      <pubDate>Sat, 04 Jun 2016 06:48:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-and-Input/m-p/275163#M54995</guid>
      <dc:creator>pawandh</dc:creator>
      <dc:date>2016-06-04T06:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Infile and Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-and-Input/m-p/275165#M54996</link>
      <description>Because there is a dependency - input needs a source to input from. This us syntax, just accept it. The why's can discuss with the developers in Cary...&lt;BR /&gt;&lt;BR /&gt;And yeah, something like that.</description>
      <pubDate>Sat, 04 Jun 2016 07:21:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-and-Input/m-p/275165#M54996</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-06-04T07:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: Infile and Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-and-Input/m-p/275189#M54999</link>
      <description>&lt;P&gt;Since the infile can dynamically change during data step execution (ie by using the filevar= option), the position of the infile statement within the code is important.&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 16:49:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-and-Input/m-p/275189#M54999</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-06-04T16:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Infile and Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Infile-and-Input/m-p/275190#M55000</link>
      <description>&lt;P&gt;The order of the INFILE and INPUT statements matter because they are executale statements. You can have multiples of each in the same data step. &amp;nbsp;You could have an INPUT statement before any INFILE statement, but then it would expect there to be a CARDS (datalines) statement for it to find the data to read.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What variables are defined in your data step are determined when the step is compiled. &amp;nbsp;The order of the variable is determined by the order that the complier sees them. &amp;nbsp;When the INPUT statement runs it will place the values it reads into the locations for those variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Jun 2016 16:50:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Infile-and-Input/m-p/275190#M55000</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2016-06-04T16:50:27Z</dc:date>
    </item>
  </channel>
</rss>

