<?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: about INFILE option END= in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30429#M5801</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;Peter.C wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like a long time since anyone used that ? interface&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; Do you think it is still available? If it is no longer available why preserve the analogy? &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNIX SAS 9.2 started with -NODMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&amp;nbsp; 1? data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; infile cards end=eof;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; list;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put eof=;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; cards;&lt;BR /&gt;hello kitty&lt;BR /&gt;;;;&lt;BR /&gt;&amp;nbsp; 2? run;&lt;BR /&gt;WARNING: The value of the INFILE END= option cannot be set for CARDS or &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATALINES input.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 7&amp;gt; &lt;BR /&gt;eof=0&lt;BR /&gt;RULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6----+--&lt;BR /&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hello kitty&lt;/P&gt;&lt;P&gt;&amp;nbsp; 8&amp;gt; &lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.09 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.02 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; 9? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Oct 2011 11:35:28 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2011-10-20T11:35:28Z</dc:date>
    <item>
      <title>about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30423#M5795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as documented for the INFINE option END=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DL&gt;&lt;DT&gt;&lt;A name="a000853537"&gt;&lt;/A&gt;&lt;A name="a000166931"&gt;&lt;/A&gt;END=&lt;SPAN class="emph"&gt;&lt;SPAN class="strong"&gt;variable&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;/DT&gt;&lt;DD style="padding-left: 60px;"&gt;&lt;P&gt;&lt;A name="a000853538"&gt;&lt;/A&gt;specifies a variable that SAS sets to 1 when the current input data record is the last in the input file. Until SAS processes the last data record, the END= variable is set to 0. Like automatic variables, this variable is not written to the data set.&lt;/P&gt;&lt;TABLE cellpadding="4" cellspacing="2"&gt;&lt;TBODY&gt;&lt;TR valign="top"&gt;&lt;TD align="left" class="label" nowrap="nowrap" width="95"&gt;Restriction:&lt;/TD&gt;&lt;TD align="left" class="bgBlockLight"&gt;&lt;A name="a000853539"&gt;&lt;/A&gt;You cannot use the END= option with&amp;nbsp; &lt;UL&gt;&lt;LI&gt;&lt;A name="a000853540"&gt;&lt;/A&gt;the UNBUFFERED option&lt;/LI&gt;&lt;LI&gt;&lt;A name="a000853541"&gt;&lt;/A&gt;the DATALINES or DATALINES4 statement&lt;/LI&gt;&lt;/UL&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain why this "Restriction" applies to DATALINES? (or it's earlier form CARDS)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sure the on-line doc offers a work-around using another option, but I'm intrigued why this Restriction applies.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC&lt;/P&gt;&lt;/DL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 08:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30423#M5795</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-10-18T08:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30424#M5796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I always thought it was because CARDS are UNBUFFERED.&amp;nbsp; If you want in-stream buffered data lines use PARMCARDS;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; FT15F001 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;temp&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; FT15F001 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=eof;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;list&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; eof=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;parmcards&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;hello peter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: #ffffc0;"&gt;hello kitty&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;;;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 15:14:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30424#M5796</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-10-18T15:14:43Z</dc:date>
    </item>
    <item>
      <title>about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30425#M5797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;thank you data_null_; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;as you demonstrate, PARMCARDS would work!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess in the days of the ? interface, code (and card datalines) were processed line by line and the line I would want to flag in the END= var is the line before the semi-colon - so it is unrecognised until too late!&lt;/P&gt;&lt;P&gt;Seems like a long time since anyone used that ? interface&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; Do you think it is still available? If it is no longer available why preserve the analogy? &lt;/P&gt;&lt;P&gt;Alternatively the END=var could be flagged once that ; is recognised. Would that be a valid approach?&lt;/P&gt;&lt;P&gt;peter &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 12:23:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30425#M5797</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-10-19T12:23:09Z</dc:date>
    </item>
    <item>
      <title>about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30426#M5798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Null' s code can work, because he used Filename statement. &lt;/P&gt;&lt;P&gt;if you keep cards into a file.&lt;/P&gt;&lt;P&gt;Filename x 'c:\test.txt'.&amp;nbsp;&amp;nbsp; end= option also can work.&lt;/P&gt;&lt;P&gt;For this case, why not use eof= option to detect the end of cards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 05:14:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30426#M5798</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-10-20T05:14:52Z</dc:date>
    </item>
    <item>
      <title>about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30427#M5799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you ksharp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eof=label is the alternative option I referred to in my original question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the example above from data_null_; the PARMCARDS seem no more "buffered" than DATALINES, but if that is all it needs to obtain the effect of END= on the INFILE statement for "instream" data then I shall be adopting that route. &lt;/P&gt;&lt;P&gt;(FT15F001 must be assigned for PARMCARDS to be written, but although there is reference to FT15F001 in the config file, that is not enough:smileyconfused: so I expect to add something to the autoexec to eliminate the need for any further FT15F001 filename statements). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was reminded of the Restriction when testing demo code in the posting from &lt;STRONG&gt;SASJedi &lt;/STRONG&gt;at 18-Oct-2011 19:16 (in response to FriedEgg) &lt;BR /&gt;"&lt;EM&gt;Re: Reading tab-delimited data using a macro&lt;/EM&gt;"&amp;nbsp; &lt;A _jive_internal="true" href="https://communities.sas.com/thread/31512"&gt;http://communities.sas.com/thread/31512&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: red;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New';"&gt; last then do;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New';"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: red;"&gt;call&lt;/SPAN&gt; symputx(&lt;SPAN style="color: purple;"&gt;'mlen_this'&lt;/SPAN&gt;,mlen_this);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: red;"&gt;call&lt;/SPAN&gt; symputx(&lt;SPAN style="color: purple;"&gt;'mlen_that'&lt;/SPAN&gt;,mlen_that);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: blue;"&gt;end&lt;/SPAN&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;the call symputx() are never executed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although the code is easily adapted to use the eof= option.&lt;/P&gt;&lt;P&gt;it seemed appropriate to &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Question that Restriction&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;probably pointless &lt;EM&gt;question&lt;/EM&gt;, because it will probably never change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;supplemental question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it add value to have either a NOTE: or WARNING: for the setting of an option that &lt;STRONG&gt;cannot&lt;/STRONG&gt; take effect (such as this one)?&lt;/P&gt;&lt;P&gt;Would it add &lt;EM&gt;enough &lt;/EM&gt;value to justify a suggestion for the &lt;A href="http://support.sas.com/community/ballot/"&gt;SASware ballot&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 10:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30427#M5799</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-10-20T10:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30428#M5800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;Peter.C wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG style="text-decoration: underline;"&gt;supplemental question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it add value to have either a NOTE: or WARNING: for the setting of an option that &lt;STRONG&gt;cannot&lt;/STRONG&gt; take effect (such as this one)?&lt;/P&gt;&lt;P&gt;Would it add &lt;EM&gt;enough &lt;/EM&gt;value to justify a suggestion for the &lt;A class="jive-link-external-small" href="http://support.sas.com/community/ballot/"&gt;SASware ballot&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peter&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Do you mean this warning?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;1&amp;nbsp;&amp;nbsp;&amp;nbsp; data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile cards end=eof;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;WARNING: The value of the INFILE END= option cannot be set for CARDS or DATALINES input.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; list;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt; font-family: 'SAS Monospace';"&gt;5&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cards;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 11:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30428#M5800</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-10-20T11:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30429#M5801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;Peter.C wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like a long time since anyone used that ? interface&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; Do you think it is still available? If it is no longer available why preserve the analogy? &lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UNIX SAS 9.2 started with -NODMS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code"&gt;&lt;P&gt;&amp;nbsp; 1? data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; infile cards end=eof;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; input;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; list;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put eof=;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; cards;&lt;BR /&gt;hello kitty&lt;BR /&gt;;;;&lt;BR /&gt;&amp;nbsp; 2? run;&lt;BR /&gt;WARNING: The value of the INFILE END= option cannot be set for CARDS or &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATALINES input.&lt;/P&gt;&lt;P&gt;&amp;nbsp; 7&amp;gt; &lt;BR /&gt;eof=0&lt;BR /&gt;RULE:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ----+----1----+----2----+----3----+----4----+----5----+----6----+--&lt;BR /&gt;7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; hello kitty&lt;/P&gt;&lt;P&gt;&amp;nbsp; 8&amp;gt; &lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.09 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.02 seconds&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; 9? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 11:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30429#M5801</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-10-20T11:35:28Z</dc:date>
    </item>
    <item>
      <title>about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30430#M5802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; does the parmcards example work just as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 12:20:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30430#M5802</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-10-20T12:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30431#M5803</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15174"&gt;@Peter_C&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;does the parmcards example work just as well?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My response from 2011 is not correct.&amp;nbsp; You can place PARMCARDS in the same location as&amp;nbsp; CARDS statement and read from it.&amp;nbsp; I don't know why I thought that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/28157i8D57E70164281B9E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Previous response from 2011.&lt;BR /&gt;Not exactly the same.&amp;nbsp; You have to submit PARMCARDS first. While not so intuitive is probably how it should be done anyway.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;create a file&lt;/LI&gt;
&lt;LI&gt;read a file&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; FT15F001 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;clear&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;filename&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; FT15F001 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;temp&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: red; font-family: 'Courier New'; background-color: white;"&gt;parmcards&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: red; font-family: 'Courier New'; background-color: white;"&gt;hello&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; color: teal; font-family: 'Courier New'; background-color: white;"&gt;peter.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;hello kitty&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;;;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; test;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; FT15F001 &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;=eof;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;list&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; color: blue; font-family: 'Courier New'; background-color: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: 'Courier New'; background-color: white;"&gt; eof=;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG style="color: navy; font-size: 10pt; background-color: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Mar 2019 13:51:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30431#M5803</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-03-24T13:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30432#M5804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. &lt;STRONG&gt;SASJedi &lt;/STRONG&gt;should use filename statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;supplemental question&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Would it add value to have either a NOTE: or WARNING: for the setting of an option that &lt;STRONG&gt;cannot&lt;/STRONG&gt; take effect (such as this one)?&lt;/P&gt;&lt;P&gt;Would it add &lt;EM&gt;enough &lt;/EM&gt;value to justify a suggestion for the &lt;A class="jive-link-external-small" href="http://support.sas.com/community/ballot/"&gt;SASware ballot&lt;/A&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure. Maybe you can check some system option to suppress these message. Just like keep drop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Oct 2011 06:40:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30432#M5804</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-10-21T06:40:27Z</dc:date>
    </item>
    <item>
      <title>about INFILE option END=</title>
      <link>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30433#M5805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;Not exactly the same. You have to submit PARMCARDS first. While not so intuative is probably how it should be done anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create a file &lt;/LI&gt;&lt;LI&gt;read a file&lt;/LI&gt;&lt;/UL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thought it might be like that&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.sas.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So - I think &lt;EM&gt;that&lt;/EM&gt; (almost always, being able to place parmcards where datalines would go) demonstrates that, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;other than in "line interactive" mode, code is buffered as it is submitted to SAS even when it includes "instream data" i.e. CARDS, PARMCARDS and DATALINES .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, until the logic of that&amp;nbsp; changes the treatment of "instream data" to "buffered", I'll try to respect that WARNING and use EOF= rather than END= when testing the end of an INFILE. &lt;/P&gt;&lt;P&gt;At least EOF= allows code to remain otherwise unaltered when development testing (with instream data) progresses to working with "real data" that is not "instream". &lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New';"&gt; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;code like &lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; cards &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;truncover&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;END&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;= last;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;&amp;nbsp;&amp;nbsp; if last then call symputx(&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: purple; font-size: 9pt;"&gt;'mlen_that'&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,mlen_that);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;cards&lt;/SPAN&gt;;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt; will become something like &lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New';"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;infile&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; cards &lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;truncover&lt;/SPAN&gt; &lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;EOF&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;= eof_label ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New';"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; background-color: white; font-family: 'Courier New';"&gt;return;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New';"&gt; eof_label:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New';"&gt;&lt;SPAN style="color: red;"&gt;&amp;nbsp;&amp;nbsp; call&lt;/SPAN&gt; symputx(&lt;SPAN style="color: purple;"&gt;'mlen_that'&lt;/SPAN&gt;,mlen_that);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="background-color: white; font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;I might just stop using END= on INFILE statements, completely:smileyshocked:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; peter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Oct 2011 10:21:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/about-INFILE-option-END/m-p/30433#M5805</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-10-22T10:21:23Z</dc:date>
    </item>
  </channel>
</rss>

