<?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 about $ sign in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-sign/m-p/67407#M3247</link>
    <description>&amp;gt; I run following code:&lt;BR /&gt;
&amp;gt; data admit;&lt;BR /&gt;
&amp;gt;    input ID $ 1-4 Name $ 6-19 Sex $ 21 Age 23-24&lt;BR /&gt;
&amp;gt;       Date 26-27 Height 29-30 Weight 32-34&lt;BR /&gt;
&amp;gt;    ActLevel $ 36-39 Fee 41-46;&lt;BR /&gt;
&amp;gt; format fee 6.2;&lt;BR /&gt;
&amp;gt; run;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I guess 'ID $1-4',it will produce a parameter,its&lt;BR /&gt;
&amp;gt; width is 4,but I don't understand 'Sex $21' width is&lt;BR /&gt;
&amp;gt; 1,why? And 'Weight 32-34' width is 8,why?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
these are column number ranges and in SAS without other statements to define the variable attributes the column numbers serve that purpose.&lt;BR /&gt;
$1-4 character length 4&lt;BR /&gt;
$21 same as $21-21  character length 1&lt;BR /&gt;
32-34 NO $ sign numeric.  All numerics default to lenght 8.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Where is 5,20,22,25,28,31,35,40?  Why omit them?&lt;BR /&gt;
&lt;BR /&gt;
Those columns are skipped. No mistery.&lt;BR /&gt;
&lt;BR /&gt;
You need to read about COLUMN INPUT.  That will answer most of your questions.&lt;BR /&gt;
&lt;BR /&gt;
This INPUT statement syntax was developed with the very first SAS version from the late sixties.  If may seem odd to some.</description>
    <pubDate>Thu, 27 Aug 2009 03:05:02 GMT</pubDate>
    <dc:creator>data_null__</dc:creator>
    <dc:date>2009-08-27T03:05:02Z</dc:date>
    <item>
      <title>Question about $ sign</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-sign/m-p/67405#M3245</link>
      <description>I run following code:&lt;BR /&gt;
data admit;&lt;BR /&gt;
   input ID $ 1-4 Name $ 6-19 Sex $ 21 Age 23-24&lt;BR /&gt;
         Date 26-27 Height 29-30 Weight 32-34&lt;BR /&gt;
         ActLevel $ 36-39 Fee 41-46;&lt;BR /&gt;
   format fee 6.2;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
I guess 'ID $1-4',it will produce a parameter,its width is 4,but I don't understand 'Sex $21' width is 1,why? And 'Weight 32-34' width is 8,why?&lt;BR /&gt;
&lt;BR /&gt;
input ID $ 1-4 Name $ 6-19 Sex $ 21 Age 23-24&lt;BR /&gt;
         Date 26-27 Height 29-30 Weight 32-34&lt;BR /&gt;
         ActLevel $ 36-39 Fee 41-46;&lt;BR /&gt;
&lt;BR /&gt;
Where is 5,20,22,25,28,31,35,40?  Why omit them?</description>
      <pubDate>Thu, 27 Aug 2009 01:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-sign/m-p/67405#M3245</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-08-27T01:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Question about $ sign</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-sign/m-p/67406#M3246</link>
      <description>Suggest you check out the chapter on reading raw data in the SAS/Base Concepts manual:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a001112330.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/lrcon/61722/HTML/default/a001112330.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
The answers to most of your questions are there.  The others can be found by reading about the INPUT statement in the SAS Language Reference Dictionary..&lt;BR /&gt;
&lt;BR /&gt;
Doc Muhlbaier</description>
      <pubDate>Thu, 27 Aug 2009 02:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-sign/m-p/67406#M3246</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2009-08-27T02:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Question about $ sign</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-about-sign/m-p/67407#M3247</link>
      <description>&amp;gt; I run following code:&lt;BR /&gt;
&amp;gt; data admit;&lt;BR /&gt;
&amp;gt;    input ID $ 1-4 Name $ 6-19 Sex $ 21 Age 23-24&lt;BR /&gt;
&amp;gt;       Date 26-27 Height 29-30 Weight 32-34&lt;BR /&gt;
&amp;gt;    ActLevel $ 36-39 Fee 41-46;&lt;BR /&gt;
&amp;gt; format fee 6.2;&lt;BR /&gt;
&amp;gt; run;&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; I guess 'ID $1-4',it will produce a parameter,its&lt;BR /&gt;
&amp;gt; width is 4,but I don't understand 'Sex $21' width is&lt;BR /&gt;
&amp;gt; 1,why? And 'Weight 32-34' width is 8,why?&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&lt;BR /&gt;
these are column number ranges and in SAS without other statements to define the variable attributes the column numbers serve that purpose.&lt;BR /&gt;
$1-4 character length 4&lt;BR /&gt;
$21 same as $21-21  character length 1&lt;BR /&gt;
32-34 NO $ sign numeric.  All numerics default to lenght 8.&lt;BR /&gt;
&lt;BR /&gt;
&amp;gt; &lt;BR /&gt;
&amp;gt; Where is 5,20,22,25,28,31,35,40?  Why omit them?&lt;BR /&gt;
&lt;BR /&gt;
Those columns are skipped. No mistery.&lt;BR /&gt;
&lt;BR /&gt;
You need to read about COLUMN INPUT.  That will answer most of your questions.&lt;BR /&gt;
&lt;BR /&gt;
This INPUT statement syntax was developed with the very first SAS version from the late sixties.  If may seem odd to some.</description>
      <pubDate>Thu, 27 Aug 2009 03:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-about-sign/m-p/67407#M3247</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2009-08-27T03:05:02Z</dc:date>
    </item>
  </channel>
</rss>

