Date: Wed, 6 Jun 2001 09:37:52 -0700
Reply-To: Andrew Bushmakin <abushmakin@ARGOSE.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Andrew Bushmakin <abushmakin@ARGOSE.COM>
Organization: http://groups.google.com/
Subject: Re: Check a dataset for obs?
Content-Type: text/plain; charset=ISO-8859-1
Try this as the example:
Init:
Submit Continue;
Data abc;
a=1;output;
a=2;output;
a=3;output;
Run;
EndSubmit;
tableid=open('abc');
NumberOfObs=attrn(tableid,'NLOBS');
rc=close(tableid);
commandlist=makelist();
commandlist=insertc(commandlist,'There is ' || NumberOfObs || 'Observation.',1);
command=messagebox(commandlist,'!','YN','My Message!');
commandlist=dellist(commandlist);
Return;
Andrew Bushmakin
|