<?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: Put _infile_ Statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Put-infile-Statement/m-p/269030#M53290</link>
    <description>&lt;P&gt;Input tells SAS to read a line from the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_infile_ is the automatic variable that contains the input - usually the entire line but you can run into issues if the line is longer than expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the documentation of PUT with the variable _infile_.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#n1spe7nmkmi7ywn175002rof97fv.htm#p0gi42s1waenktn144pixye0rmt1" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#n1spe7nmkmi7ywn175002rof97fv.htm#p0gi42s1waenktn144pixye0rmt1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
_INFILE_
writes the last input data record that is read either from the current input file or from the data lines that follow a DATELINES statement.
Tips:_INFILE_ is an automatic variable that references the current INPUT buffer. You can use this automatic variable in other SAS statements.
If the most recent INPUT statement uses line-pointer controls to read multiple input data records, PUT _INFILE_ writes only the record that the input pointer is positioned on.
Example:This PUT statement writes all the values of the first input data record:
input #3 score #1 name $ 6-23;
put _infile_;
Example:Writing the Current Input Record to the Log
_ALL_
writes the values of all variables, which includes automatic variables, that are defined in the current DATA step by using named output.
See:Named Output&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Sat, 07 May 2016 19:03:35 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-05-07T19:03:35Z</dc:date>
    <item>
      <title>Put _infile_ Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-infile-Statement/m-p/269027#M53288</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS and trying to understand what does&amp;nbsp;Put _infile_ Statement means?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also If someone can help to understand what does input; means? As we have not declared any variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data _null_; &amp;nbsp;&lt;/P&gt;&lt;P&gt;infile XYZ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;input ; &amp;nbsp;&lt;/P&gt;&lt;P&gt;put _infile_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Saket&lt;/P&gt;</description>
      <pubDate>Sat, 07 May 2016 18:49:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-infile-Statement/m-p/269027#M53288</guid>
      <dc:creator>Saket_90</dc:creator>
      <dc:date>2016-05-07T18:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Put _infile_ Statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Put-infile-Statement/m-p/269030#M53290</link>
      <description>&lt;P&gt;Input tells SAS to read a line from the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_infile_ is the automatic variable that contains the input - usually the entire line but you can run into issues if the line is longer than expected.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the documentation of PUT with the variable _infile_.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#n1spe7nmkmi7ywn175002rof97fv.htm#p0gi42s1waenktn144pixye0rmt1" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lestmtsref/63323/HTML/default/viewer.htm#n1spe7nmkmi7ywn175002rof97fv.htm#p0gi42s1waenktn144pixye0rmt1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
_INFILE_
writes the last input data record that is read either from the current input file or from the data lines that follow a DATELINES statement.
Tips:_INFILE_ is an automatic variable that references the current INPUT buffer. You can use this automatic variable in other SAS statements.
If the most recent INPUT statement uses line-pointer controls to read multiple input data records, PUT _INFILE_ writes only the record that the input pointer is positioned on.
Example:This PUT statement writes all the values of the first input data record:
input #3 score #1 name $ 6-23;
put _infile_;
Example:Writing the Current Input Record to the Log
_ALL_
writes the values of all variables, which includes automatic variables, that are defined in the current DATA step by using named output.
See:Named Output&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 07 May 2016 19:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Put-infile-Statement/m-p/269030#M53290</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-05-07T19:03:35Z</dc:date>
    </item>
  </channel>
</rss>

