<?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 Not sure how to read an INPUT @'constant' in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-sure-how-to-read-an-INPUT-constant/m-p/6489#M2539</link>
    <description>I'm unfamiliar with this technique.  Nor do I see it in the help documentation.   The line of code is:&lt;BR /&gt;
&lt;BR /&gt;
INPUT @col @']:' @;&lt;BR /&gt;
&lt;BR /&gt;
where col is the pointer of a previousily input column.&lt;BR /&gt;
&lt;BR /&gt;
Is the @']:' placing the constant ']:' in the input record after the field at pointer col?&lt;BR /&gt;
&lt;BR /&gt;
Update:&lt;BR /&gt;
&lt;BR /&gt;
It appears that the INPUT @'constant' actually searches the input line for the constant.  When the constant is found the pointer is set to the first column after the portion of the record that matches the constant.

J_Mark_W 11:07AM ET&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: J_Mark_W</description>
    <pubDate>Wed, 23 Jan 2008 15:07:54 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-01-23T15:07:54Z</dc:date>
    <item>
      <title>Not sure how to read an INPUT @'constant'</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-sure-how-to-read-an-INPUT-constant/m-p/6489#M2539</link>
      <description>I'm unfamiliar with this technique.  Nor do I see it in the help documentation.   The line of code is:&lt;BR /&gt;
&lt;BR /&gt;
INPUT @col @']:' @;&lt;BR /&gt;
&lt;BR /&gt;
where col is the pointer of a previousily input column.&lt;BR /&gt;
&lt;BR /&gt;
Is the @']:' placing the constant ']:' in the input record after the field at pointer col?&lt;BR /&gt;
&lt;BR /&gt;
Update:&lt;BR /&gt;
&lt;BR /&gt;
It appears that the INPUT @'constant' actually searches the input line for the constant.  When the constant is found the pointer is set to the first column after the portion of the record that matches the constant.

J_Mark_W 11:07AM ET&lt;BR /&gt;
&lt;BR /&gt;
    &lt;BR /&gt;
Message was edited by: J_Mark_W</description>
      <pubDate>Wed, 23 Jan 2008 15:07:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-sure-how-to-read-an-INPUT-constant/m-p/6489#M2539</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-23T15:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to read an INPUT @'constant'</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-sure-how-to-read-an-INPUT-constant/m-p/6490#M2540</link>
      <description>The line as it is printed doesn't appear to actually be reading in anything.&lt;BR /&gt;
&lt;BR /&gt;
It looks to me like it is trying to find a starting point for reading data using a subsequent input statement.&lt;BR /&gt;
&lt;BR /&gt;
As I read this, the pointer is first moving to the column number specified by the col variable.  Then it is moving to the string ']:', if it can find it, in the input buffer.  If there is no ']:', then the pointer stays at @col.  The last @ holds everything in memory so that additional input statements can be specified.</description>
      <pubDate>Wed, 23 Jan 2008 16:05:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-sure-how-to-read-an-INPUT-constant/m-p/6490#M2540</guid>
      <dc:creator>1162</dc:creator>
      <dc:date>2008-01-23T16:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Not sure how to read an INPUT @'constant'</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-sure-how-to-read-an-INPUT-constant/m-p/6491#M2541</link>
      <description>That pretty much matches what I see in running the code against a single record in test.</description>
      <pubDate>Wed, 23 Jan 2008 16:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Not-sure-how-to-read-an-INPUT-constant/m-p/6491#M2541</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-01-23T16:11:39Z</dc:date>
    </item>
  </channel>
</rss>

