<?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: Input statement in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Input-statement/m-p/61379#M13332</link>
    <description>hi ... in addition to the SAS documentation, you can learn a lot about uses of _INFILE_ by reading ...&lt;BR /&gt;
&lt;BR /&gt;
first:  "Now _INFILE_ is an Automatic Variable − So What?"&lt;BR /&gt;
Howard Schreier&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.nesug.org/proceedings/nesug01/cc/cc4018bw.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug01/cc/cc4018bw.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
then try:  "More _Infile_ Magic"&lt;BR /&gt;
Peter Crawford&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi28/086-28.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi28/086-28.pdf&lt;/A&gt;</description>
    <pubDate>Fri, 14 Jan 2011 03:23:44 GMT</pubDate>
    <dc:creator>MikeZdeb</dc:creator>
    <dc:date>2011-01-14T03:23:44Z</dc:date>
    <item>
      <title>Input statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-statement/m-p/61376#M13329</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
This is a code from the Sas website:&lt;BR /&gt;
&lt;BR /&gt;
data _null_;&lt;BR /&gt;
   infile file-specification-1;&lt;BR /&gt;
   file file-specification-2;&lt;BR /&gt;
   input;&lt;BR /&gt;
   put _infile_;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
What is _infile_ over here and what does it do? Is it an automatic variable like _all_?&lt;BR /&gt;
&lt;BR /&gt;
Can someone please explain this data step?</description>
      <pubDate>Tue, 11 Jan 2011 15:58:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-statement/m-p/61376#M13329</guid>
      <dc:creator>JatinRai</dc:creator>
      <dc:date>2011-01-11T15:58:12Z</dc:date>
    </item>
    <item>
      <title>Re: Input statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-statement/m-p/61377#M13330</link>
      <description>It's easier to help if you cite where you found the code.  That way we can comment in context.&lt;BR /&gt;
&lt;BR /&gt;
Basically, the DATA step takes the data from file 1 and puts it into file 2.  It is different from a simple OS copy in that it can do some rudimentary code translation for different environments (depending on the additional parameters specified in the INFILE and FILE statements).&lt;BR /&gt;
&lt;BR /&gt;
The _INFILE_ automatic variable is documented with the INFILE statement,&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000146932.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000146932.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
The way I have most commonly used this is to create a hex print of the INFILE buffer when I am trying debug some messy data problem.&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke</description>
      <pubDate>Tue, 11 Jan 2011 16:51:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-statement/m-p/61377#M13330</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-01-11T16:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Input statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-statement/m-p/61378#M13331</link>
      <description>Thanks! It was helpful.</description>
      <pubDate>Tue, 11 Jan 2011 17:00:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-statement/m-p/61378#M13331</guid>
      <dc:creator>JatinRai</dc:creator>
      <dc:date>2011-01-11T17:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Input statement</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Input-statement/m-p/61379#M13332</link>
      <description>hi ... in addition to the SAS documentation, you can learn a lot about uses of _INFILE_ by reading ...&lt;BR /&gt;
&lt;BR /&gt;
first:  "Now _INFILE_ is an Automatic Variable − So What?"&lt;BR /&gt;
Howard Schreier&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www.nesug.org/proceedings/nesug01/cc/cc4018bw.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug01/cc/cc4018bw.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
then try:  "More _Infile_ Magic"&lt;BR /&gt;
Peter Crawford&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi28/086-28.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi28/086-28.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 14 Jan 2011 03:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Input-statement/m-p/61379#M13332</guid>
      <dc:creator>MikeZdeb</dc:creator>
      <dc:date>2011-01-14T03:23:44Z</dc:date>
    </item>
  </channel>
</rss>

