Date: Fri, 19 Sep 2008 04:49:25 -0700
Reply-To: Patrick <patrick.matter@GMX.CH>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Patrick <patrick.matter@GMX.CH>
Organization: http://groups.google.com
Subject: Re: Count variables
Content-Type: text/plain; charset=ISO-8859-1
Here a Proc Tabulate solution. You could use Proc Report.
data have;
infile datalines truncover;
input studentID Course_title $ ExaminationDate:DDMMYY12.
PassDate:DDMMYY12. Mark;
datalines;
1 OEK 15.02.2007
1 OEK 15.04.2007
1 UIT 14.02.2007
1 UIT 18.04.2007 18.04.2007 6
1 SOS 16.04.2007
2 OEK 15.02.2007 15.02.2007 8
;
options missing=' ';
proc tabulate;
class StudentID Course_title;
table StudentID,Course_title*n='';
run;
|