<?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 Use column pointers and informat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Use-column-pointers-and-informat/m-p/506731#M135828</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I saw this code.&lt;/P&gt;
&lt;P&gt;May anyone explain please why do they use informat $12.? (why not $10 for example)?&lt;/P&gt;
&lt;P&gt;May anyone explain please why do they use input pointers +4 and +6?why not other numbers?&lt;/P&gt;
&lt;P&gt;I see that var name has maximum 9 digits&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I see that var score1 has&amp;nbsp;5 digits(included comma)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I see that var&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;score2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;has&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;5 digits(included comma)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data scores;
   input name $12. +4 score1 comma5. +6 score2 comma5.;
   cards;
Riley           1,132      1,187
Henderson       1,015      1,102
;
Run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Oct 2018 04:44:29 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2018-10-23T04:44:29Z</dc:date>
    <item>
      <title>Use column pointers and informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-column-pointers-and-informat/m-p/506731#M135828</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I saw this code.&lt;/P&gt;
&lt;P&gt;May anyone explain please why do they use informat $12.? (why not $10 for example)?&lt;/P&gt;
&lt;P&gt;May anyone explain please why do they use input pointers +4 and +6?why not other numbers?&lt;/P&gt;
&lt;P&gt;I see that var name has maximum 9 digits&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I see that var score1 has&amp;nbsp;5 digits(included comma)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I see that var&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;score2&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;has&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;5 digits(included comma)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data scores;
   input name $12. +4 score1 comma5. +6 score2 comma5.;
   cards;
Riley           1,132      1,187
Henderson       1,015      1,102
;
Run;

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Oct 2018 04:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-column-pointers-and-informat/m-p/506731#M135828</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-10-23T04:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: Use column pointers and informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Use-column-pointers-and-informat/m-p/506743#M135833</link>
      <description>&lt;P&gt;Someone should have written a record-description: a least a table describing the data to be found in a file matching the description. Without that description it is hardly possible to know why $12 has been used, maybe because the data will be merged using the name-variable and it has been defined with length=12 in the other dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The +4 / +6 move the column-pointer to the first char of the variable.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 07:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Use-column-pointers-and-informat/m-p/506743#M135833</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2018-10-23T07:14:25Z</dc:date>
    </item>
  </channel>
</rss>

