LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (March 2012, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 22 Mar 2012 11:32:55 -0400
Reply-To:     Jim Groeneveld <jim.1stat@YAHOO.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jim Groeneveld <jim.1stat@YAHOO.COM>
Subject:      SQL Count peculiarity

Hi friends,

Does anyone know anything about the following oddity? The SAS SQL documentations presents its aggregate functions and says that COUNT, FREQ and N are interchangeable. However, nothing is less true as the following log snippet shows: MPRINT(CROSSREF): SELECT N(*) INTO : NofRows FROM AnyTable; ERROR: * used for a function other than COUNT.

Of course, the only example where all rows are counted uses COUNT. And COUNT does NOT cause an error (I didn't try FREQ).

Regards - Jim. -- Jim Groeneveld, Netherlands Statistician/SAS consultant http://jim.groeneveld.eu.tf


Back to: Top of message | Previous page | Main SAS-L page