<?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: Question on Pointer Location with List Input in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526175#M143248</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Note also that with LIST mode it is not always SPACE characters that it is used to mark the end of a field. It is whatever characters are included in the DLM= option of the INFILE statement.&amp;nbsp; Space is the default, unless the DSD option is specified. The DSD option changes the default to comma instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar behavior when using the DLMSTR= option also. Cursor is left at the character after the end of the delimiter string that was found.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;DSD also changes the way consecutive delimiters are handled.&amp;nbsp; I'm not sure about pointer position for consecutive delimiters, reckon I need to find out.&amp;nbsp; &lt;img id="cathappy" class="emoticon emoticon-cathappy" src="https://communities.sas.com/i/smilies/16x16_cat-happy.png" alt="Cat Happy" title="Cat Happy" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2019 19:32:39 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2019-01-10T19:32:39Z</dc:date>
    <item>
      <title>Question on Pointer Location with List Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526150#M143227</link>
      <description>&lt;P&gt;Noob question. I was reading a document from SAS support about List Inputs. The example given below is from their website. My question is why the pointer is located in column 5 and not column 4 after the value red is read?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="2"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; scores;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;&amp;nbsp;&amp;nbsp; input&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt; Team $ Score;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="2"&gt;datalines&lt;/FONT&gt;&lt;FONT face="Courier New" size="2"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;red&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;59&lt;/P&gt;&lt;P&gt;blue&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 95&lt;/P&gt;&lt;P&gt;yellow&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;63&lt;/P&gt;&lt;P&gt;green&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 76&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following figure shows that the pointer is located in column 5 after the value &lt;SPAN class="strongMono"&gt;red&lt;/SPAN&gt; is read. Because Score, the next variable, is read with list input, the pointer scans for the next nonblank space before it begins to read a value for Score. Unlike column and formatted input, you do not have to explicitly move the pointer to the beginning of the next field in list input.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="titleRefaid"&gt;Pointer Position: List Input&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="[Pointer Position: List Input]" src="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/images/point-pos2.gif" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link of original document, the above is at the very bottom of the page:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a002645710.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/viewer.htm#a002645710.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 18:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526150#M143227</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2019-01-10T18:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Pointer Location with List Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526156#M143232</link>
      <description>&lt;P&gt;With LIST input, SAS has to read across the line until it finds a blank.&amp;nbsp; That's how it knows it has found all the characters.&amp;nbsp; So to find "red" as the value, SAS has to read the blank in column 4.&amp;nbsp; That's how it knows it has found all the nonblank characters, and it's why the pointer is now at column 5.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 19:04:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526156#M143232</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-10T19:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Pointer Location with List Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526158#M143234</link>
      <description>&lt;P&gt;From the document you reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; With list input, the pointer reads until a blank is reached and then stops in the next column&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 19:07:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526158#M143234</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-01-10T19:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Pointer Location with List Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526162#M143237</link>
      <description>&lt;P&gt;How i understand:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Both list and column/formatted points to 1 column to the right after reading values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;List input :read until delimiter is&amp;nbsp; found (this makes it an extra read--so in your example if red-3bytes read+1 until delim makes it 4, and then as mentioned above move 1 to the right)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column/formatted : read exactly specified by the format width/number range in the input statement, then as usual move 1 column to the right&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 19:12:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526162#M143237</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-10T19:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Pointer Location with List Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526169#M143244</link>
      <description>&lt;P&gt;Note also that with LIST mode it is not always SPACE characters that it is used to mark the end of a field. It is whatever characters are included in the DLM= option of the INFILE statement.&amp;nbsp; Space is the default, unless the DSD option is specified. The DSD option changes the default to comma instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar behavior when using the DLMSTR= option also. Cursor is left at the character after the end of the delimiter string that was found.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 19:26:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526169#M143244</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-01-10T19:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Pointer Location with List Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526175#M143248</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Note also that with LIST mode it is not always SPACE characters that it is used to mark the end of a field. It is whatever characters are included in the DLM= option of the INFILE statement.&amp;nbsp; Space is the default, unless the DSD option is specified. The DSD option changes the default to comma instead.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Similar behavior when using the DLMSTR= option also. Cursor is left at the character after the end of the delimiter string that was found.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;DSD also changes the way consecutive delimiters are handled.&amp;nbsp; I'm not sure about pointer position for consecutive delimiters, reckon I need to find out.&amp;nbsp; &lt;img id="cathappy" class="emoticon emoticon-cathappy" src="https://communities.sas.com/i/smilies/16x16_cat-happy.png" alt="Cat Happy" title="Cat Happy" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 19:32:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526175#M143248</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2019-01-10T19:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Pointer Location with List Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526198#M143257</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
...&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;DSD also changes the way consecutive delimiters are handled.&amp;nbsp; I'm not sure about pointer position for consecutive delimiters, reckon I need to find out.&amp;nbsp; &lt;img id="cathappy" class="emoticon emoticon-cathappy" src="https://communities.sas.com/i/smilies/16x16_cat-happy.png" alt="Cat Happy" title="Cat Happy" /&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think the DSD option changes what happens when a read STARTS with the current position containing a delimiter.&amp;nbsp; Without DSD all of the leading delimiters are skipped and the read starts with the next non-delimiter.&amp;nbsp; With DSD a null value is used for the current read and the cursor advances past the delimiter.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 20:52:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526198#M143257</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-01-10T20:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Pointer Location with List Input</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526951#M143604</link>
      <description>&lt;P&gt;Sorry everyone for accepting a solution so late. I wasn't getting&amp;nbsp;any notifications for this post and I thought I have asked a stupid question. Checked my email today and saw it. Again, my apologies. And thanks for all the great inputs!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;I can't believe I missed it when reading the document. Thanks for pointing it out!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 15:10:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Question-on-Pointer-Location-with-List-Input/m-p/526951#M143604</guid>
      <dc:creator>cosmid</dc:creator>
      <dc:date>2019-01-14T15:10:46Z</dc:date>
    </item>
  </channel>
</rss>

