<?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: Column Pointer Controls - @ in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Column-Pointer-Controls/m-p/17820#M3439</link>
    <description>instead of -23 being considered a value, the "-" is considered separately, hence confusion!&lt;BR /&gt;
To treat -23 as a value in that context, use (-23), or @(-23)&lt;BR /&gt;
Seems almost pointless, but  input @( position-23) might be useful</description>
    <pubDate>Wed, 03 Nov 2010 17:54:51 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2010-11-03T17:54:51Z</dc:date>
    <item>
      <title>Column Pointer Controls - @</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Column-Pointer-Controls/m-p/17819#M3438</link>
      <description>From sas documentation:&lt;BR /&gt;
@n &lt;BR /&gt;
moves the pointer to column n.&lt;BR /&gt;
&lt;BR /&gt;
Range: a positive integer &lt;BR /&gt;
Tip: If n is not an integer, &lt;B&gt;SAS truncates the decimal value and uses only the integer value. If n is zero or negative, the pointer moves to column 1.&lt;/B&gt; &lt;BR /&gt;
Example: @15 moves the pointer to column 15: &lt;BR /&gt;
input @15 name $10.; &lt;BR /&gt;
&lt;BR /&gt;
Observation 01: &lt;BR /&gt;
input @-23 Name $ ;     &lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Log: &lt;BR /&gt;
293  input @-23 Name $ ;&lt;BR /&gt;
            -&lt;BR /&gt;
            22&lt;BR /&gt;
             --&lt;BR /&gt;
             200&lt;BR /&gt;
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string,&lt;BR /&gt;
              an integer constant, arrayname, #, (, +, /, //, ;, @, @@.&lt;BR /&gt;
&lt;BR /&gt;
ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;
&lt;BR /&gt;
294  run;&lt;BR /&gt;
&lt;BR /&gt;
Observation 02:&lt;BR /&gt;
input @0 Name $ ;     &lt;BR /&gt;
&lt;BR /&gt;
ERROR: The specified value for the '@' INPUT/PUT statement option must be within the range 1&amp;lt;=N&amp;lt;=&lt;BR /&gt;
       2147483647.&lt;BR /&gt;
&lt;BR /&gt;
Observation 03:&lt;BR /&gt;
input @1.35 Name $; &lt;BR /&gt;
Log:&lt;BR /&gt;
ERROR 500-185: Decimal specified for informat F is invalid.&lt;BR /&gt;
&lt;BR /&gt;
Is the documentation incorrect? Can anybody please explain this?</description>
      <pubDate>Sat, 16 Oct 2010 00:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Column-Pointer-Controls/m-p/17819#M3438</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-10-16T00:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Column Pointer Controls - @</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Column-Pointer-Controls/m-p/17820#M3439</link>
      <description>instead of -23 being considered a value, the "-" is considered separately, hence confusion!&lt;BR /&gt;
To treat -23 as a value in that context, use (-23), or @(-23)&lt;BR /&gt;
Seems almost pointless, but  input @( position-23) might be useful</description>
      <pubDate>Wed, 03 Nov 2010 17:54:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Column-Pointer-Controls/m-p/17820#M3439</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2010-11-03T17:54:51Z</dc:date>
    </item>
  </channel>
</rss>

