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 (April 2008, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Wed, 16 Apr 2008 12:54:21 -0500
Reply-To:     "Swank, Paul R" <Paul.R.Swank@UTH.TMC.EDU>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         "Swank, Paul R" <Paul.R.Swank@UTH.TMC.EDU>
Subject:      Re: how to use results of a proc in rest of program and advice
              for      newbie
Comments: To: dolphinsmile <beta_li@YAHOO.COM>
In-Reply-To:  <69bf7292-eeac-4b98-9277-f36f71d82a6c@e67g2000hsa.googlegroups.com>
Content-Type: text/plain; charset="us-ascii"

Use the Output delivery system (ODS). Any output can be sent to a SAS data set which can then be merged with the existing data.

Paul R. Swank, Ph.D. Professor and Director of Research Children's Learning Institute University of Texas Health Science Center - Houston

-----Original Message----- From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of dolphinsmile Sent: Wednesday, April 16, 2008 12:25 PM To: SAS-L@LISTSERV.UGA.EDU Subject: how to use results of a proc in rest of program and advice for newbie

Hi, I'm a newbie at SAS and have not been able to refer to individual resutls of a PROC in a later part of the code. For example, if I use PROC MEANS and one of the outputs is the mean of a variable called x, how can I assign this result to a variable that I can refer to after the "run;" ends that PROC MEANS? And a more general questions: My prior experience programming has been in VBA and C (college course, not expert). If anyone has any advise for the transition from a language like VBA to SAS, I'd really appreciate it!!


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