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 (December 2003, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 2 Dec 2003 09:04:01 -0500
Reply-To:     "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Fehd, Ronald J. (PHPPO)" <rjf2@CDC.GOV>
Subject:      Re: Print number of record only
Comments: cc: mmxell <docdoc1357@TIPGOD.COM>
Content-Type: text/plain; charset="us-ascii"

> From: mmxell [mailto:docdoc1357@TIPGOD.COM] > The "n" option of PROC PRINT will display the number of > record at the end of the dataset listing. How can I modify > the statement and print the number of record without printing > the listing of the dataset?

where do you want to print the number of records?

%Let Library = Library; %Let MemName = ntty0308;

TITLE "Nobs(&Library..&MemName.)";

%Let Library = %upcase(&Library.); %Let MemName = %upcase(&MemName.);

PROC Sql;select LibName, MemName, Nobs from Dictionary.Tables where LibName eq "&Library." and MemName eq "&MemName." ;quit;

Ron Fehd the macro maven CDC Atlanta GA USA RJF2@cdc.gov

Efficiency is intelligent laziness. -David Dunham


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