<?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 Pointer control in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Pointer-control/m-p/61409#M13342</link>
    <description>Support.sas.com states the following:&lt;BR /&gt;
&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, SAS truncates the decimal value and uses only the integer value. If n is zero or negative, the pointer moves to column 1.&lt;BR /&gt;
&lt;BR /&gt;
But when I tried the following code a syntax error appears:&lt;BR /&gt;
data test;&lt;BR /&gt;
	infile tests obs=5;&lt;BR /&gt;
	input ID $ Name &amp;amp; $14. @-27 (a1-a5) (3.) Level $;&lt;BR /&gt;
	input ID $ Name &amp;amp; $14. @-27 (a1-a5) (3.) Level $;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
When I replaced -27 with 27.78 then also the syntax error appeared. Finally when I replaced 27.78 with 27 the program worked fine. Can someone explain that why is the Tip on support.sas.com not working? I'm using SAS 9.2.</description>
    <pubDate>Tue, 11 Jan 2011 16:48:05 GMT</pubDate>
    <dc:creator>JatinRai</dc:creator>
    <dc:date>2011-01-11T16:48:05Z</dc:date>
    <item>
      <title>Pointer control</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pointer-control/m-p/61409#M13342</link>
      <description>Support.sas.com states the following:&lt;BR /&gt;
&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, SAS truncates the decimal value and uses only the integer value. If n is zero or negative, the pointer moves to column 1.&lt;BR /&gt;
&lt;BR /&gt;
But when I tried the following code a syntax error appears:&lt;BR /&gt;
data test;&lt;BR /&gt;
	infile tests obs=5;&lt;BR /&gt;
	input ID $ Name &amp;amp; $14. @-27 (a1-a5) (3.) Level $;&lt;BR /&gt;
	input ID $ Name &amp;amp; $14. @-27 (a1-a5) (3.) Level $;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
When I replaced -27 with 27.78 then also the syntax error appeared. Finally when I replaced 27.78 with 27 the program worked fine. Can someone explain that why is the Tip on support.sas.com not working? I'm using SAS 9.2.</description>
      <pubDate>Tue, 11 Jan 2011 16:48:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pointer-control/m-p/61409#M13342</guid>
      <dc:creator>JatinRai</dc:creator>
      <dc:date>2011-01-11T16:48:05Z</dc:date>
    </item>
    <item>
      <title>Re: Pointer control</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Pointer-control/m-p/61410#M13343</link>
      <description>Again, which tip.&lt;BR /&gt;
&lt;BR /&gt;
If &lt;N&gt; is an expression, the operation works as described.  I does fail as you described when you provide a literal.&lt;BR /&gt;
&lt;BR /&gt;
The problem is that the compiler can't differentiate between, for instance, a subtraction and an infix operator because the context is not clear.&lt;BR /&gt;
&lt;BR /&gt;
There is a pretty full discussion at&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000146292.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrdict/63026/HTML/default/viewer.htm#a000146292.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier&lt;BR /&gt;
Duke&lt;/N&gt;</description>
      <pubDate>Tue, 11 Jan 2011 17:01:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Pointer-control/m-p/61410#M13343</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-01-11T17:01:22Z</dc:date>
    </item>
  </channel>
</rss>

