LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 1997, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 14 Aug 1997 10:44:13 -0400
Reply-To:     Lynn Nonnemaker <LNonnemaker@PRIASSOC.COM>
Sender:       "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU>
From:         Lynn Nonnemaker <LNonnemaker@PRIASSOC.COM>
Subject:      How do you test?
Content-Type: text/plain

How do people test SAS programs, particularly those who never use SAS interactively? To test programs on only a few observations, the simplest way I know is to use an options obs=10(or whatever) statement. This does not work, however, when you have where statements in the program; the program bombs at the first where statement. To deal with this, I often include a test macro at the top of the program: %macro test; if _n_ le 10; %mend test;, and then call %test when I first set a large data set. When testing is done, I simply comment out the If statement. This method is a problem for certain sorts and whenever I set a large data set many times (the problem being that I forget to add the %test call). I am hoping that someone out there has developed a macro that deals with these various issues. Otherwise, any insights from others would be appreciated. Thanks, Lynn ************************************************************************ ************************* Lynn Nonnemaker PRI Associates, Inc. 1905 Chapel Hill Road Durham, NC 27701 Phone: (919) 493-7534 Fax: (919) 493-2935 Email: LNonnemaker@priassoc.com ************************************************************************ ***********************


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