<?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: Error Variable Type of Name  unknown in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-Type-of-Name-unknown/m-p/463034#M117907</link>
    <description>&lt;P&gt;Proc tabulate needs to know &lt;STRONG&gt;how&lt;/STRONG&gt; a particular variable is to be used. CLASS variables are for grouping, and by default will exclude records if the value for the class variable is missing. You can requested only count related statistics directly for Class variables such as N, PctN, RowPctN, ColPctN, RepPctN, PagePctN. VAR variables can have any&amp;nbsp;of the available statistics requested but do not create groups or subgroups of results.&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 15:08:18 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-05-17T15:08:18Z</dc:date>
    <item>
      <title>Error Variable Type of Name  unknown</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-Type-of-Name-unknown/m-p/462925#M117880</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't undersand why I am getting this message. Maybe someone can see what I do not. The log is here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 61         
 62         Libname Review'/folders/myfolders/Review' ;
 NOTE: Libref REVIEW was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /folders/myfolders/Review
 63         Libname Learn'/folders/myfolders/Learn' ;
 NOTE: Libref LEARN refers to the same physical library as LEARN2.
 NOTE: Libref LEARN was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /folders/myfolders/Learn
 64         Libname myformat'/folders/myfolders/sasuser.v94' ;
 NOTE: Libref MYFORMAT refers to the same physical library as SASUSER.
 NOTE: Libref MYFORMAT was successfully assigned as follows: 
       Engine:        V9 
       Physical Name: /folders/myfolders/sasuser.v94
 65         Options fmtsearch=(myformat) ;
 66         
 67         Proc tabulate data=learn.college noseps ;
 68         class ClassRank ;
 69         Var GPA ;
 70         Tables (Schoolsize All),
 71            ((GPA Classrank)*(Median Min Max)*f=5.1) ;
 72         Label SchoolSize = 'School Size'
 73               ClassRank = 'Class Rank' ;
 74         Keylabel N = ' '
 75                  Min = 'Minimum'
 76                  Max = 'Maximum'
 77                  All = 'Total' ;
 78         run ;
 
 ERROR: The type of name (Schoolsize) is unknown.
 NOTE: The SAS System stopped processing this step because of errors.
 NOTE: PROCEDURE TABULATE used (Total process time):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 78       !      
 79         
 80         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 93         &lt;/PRE&gt;&lt;P&gt;Below is the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Libname Review'/folders/myfolders/Review' ;
Libname Learn'/folders/myfolders/Learn' ;  
Libname myformat'/folders/myfolders/sasuser.v94' ; 
Options fmtsearch=(myformat) ;

Proc tabulate data=learn.college noseps ; 
	class ClassRank ; 
	Var GPA ; 
	Tables (Schoolsize All),
		   ((GPA Classrank)*(Median Min Max)*f=5.1) ; 
	Label SchoolSize = 'School Size' 
	      ClassRank = 'Class Rank' ; 
	Keylabel N = ' ' 
	         Min = 'Minimum'
	         Max = 'Maximum'
	         All = 'Total' ;
run ;	 &lt;/PRE&gt;&lt;P&gt;Below is the code for the data set learn.college.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data learn.college;
   length StudentID $ 5 Gender SchoolSize $ 1;
   do i = 1 to 100;
      StudentID = put(round(ranuni(123456)*10000),z5.);
      if ranuni(0) lt .4 then Gender = 'M';
      else Gender = 'F';
      if ranuni(0) lt .3 then SchoolSize = 'S';
      else if ranuni(0) lt .7 then SchoolSize = 'M';
      else SchoolSize = 'L';
      if ranuni(0) lt .2 then Scholarship = 'Y';
      else Scholarship = 'N';
      GPA = round(rannor(0)*.5 + 3.5,.01);
      if GPA gt 4 then GPA = 4;
      ClassRank = int(ranuni(0)*60 + 41);  /* the + 41 is there because of missing data (my note) */
      if ranuni(0) lt .1 then call missing(ClassRank);
      if ranuni(0) lt .05 then call missing(SchoolSize);
      if ranuni(0) lt .05 then call missing(GPA);
      output;
   end;
   format Gender $gender1. 
          SchoolSize $size. 
          Scholarship $yesno.;
   drop i;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 May 2018 05:00:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-Type-of-Name-unknown/m-p/462925#M117880</guid>
      <dc:creator>ManitobaMoose</dc:creator>
      <dc:date>2018-05-17T05:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable Type of Name  unknown</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-Type-of-Name-unknown/m-p/462931#M117881</link>
      <description>&lt;P&gt;Another case for Maxim 1:&lt;/P&gt;
&lt;P&gt;From &lt;A href="http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=proc&amp;amp;docsetTarget=p1g617vn5t3p39n0z9o601rw74jz.htm&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=proc&amp;amp;docsetTarget=p1g617vn5t3p39n0z9o601rw74jz.htm&amp;amp;locale=en&lt;/A&gt;:&lt;/P&gt;
&lt;TABLE class="xis-procSummary" style="box-sizing: border-box; border-spacing: 2px; border-collapse: collapse; background-color: #ffffff; margin: 0.7em 0px 0px; padding: 0px; font-size: 14.08px; border: 1px solid #e7e7e7; border-radius: 3px; color: #333333; font-family: AvenirNext, Helvetica, Arial, sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;
&lt;TBODY style="box-sizing: border-box;"&gt;
&lt;TR style="box-sizing: border-box;"&gt;
&lt;TD class="xis-requirement" style="box-sizing: border-box; padding: 0.5em; font-weight: bold; margin-top: 0.7em; background-color: #f7f7f7; vertical-align: top; color: #1b1b1b; border-bottom: 1px solid #e7e7e7;"&gt;Requirement:&lt;/TD&gt;
&lt;TD class="xis-summaryValue" style="box-sizing: border-box; padding: 0.5em 1em 0.5em 0.5em; margin-top: 0.7em; background-color: #f7f7f7; border-bottom: 1px solid #e7e7e7; vertical-align: top;"&gt;All variables in the TABLE statement must appear in either the VAR statement or the CLASS statement.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Thu, 17 May 2018 06:09:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-Type-of-Name-unknown/m-p/462931#M117881</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-05-17T06:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error Variable Type of Name  unknown</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Error-Variable-Type-of-Name-unknown/m-p/463034#M117907</link>
      <description>&lt;P&gt;Proc tabulate needs to know &lt;STRONG&gt;how&lt;/STRONG&gt; a particular variable is to be used. CLASS variables are for grouping, and by default will exclude records if the value for the class variable is missing. You can requested only count related statistics directly for Class variables such as N, PctN, RowPctN, ColPctN, RepPctN, PagePctN. VAR variables can have any&amp;nbsp;of the available statistics requested but do not create groups or subgroups of results.&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 15:08:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Error-Variable-Type-of-Name-unknown/m-p/463034#M117907</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-17T15:08:18Z</dc:date>
    </item>
  </channel>
</rss>

