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 2005, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Fri, 15 Apr 2005 10:36:09 -0400
Reply-To:   "Bonett, John" <jbonett@ETS.ORG>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Bonett, John" <jbonett@ETS.ORG>
Subject:   Re: Way to auto reset retained values to initial value....?
Content-type:   text/plain; charset=iso-8859-1

More explicitly, if anyone knows of a SAS option or function out there that can do this in minimal CPU time.

> -----Original Message----- > From: Bonett, John > Sent: Friday, April 15, 2005 10:12 AM > To: SAS-L@LISTSERV.UGA.EDU > Subject: Way to auto reset retained values to initial value....? > > Hello all, > > Is there a way to reset retained values to their initial value once > an observation is outputted without having to reference all the variable > names again? > > For instance, if I have a long list of retained numeric and character > values.... > > retain score_alpha score_beta.......... 0; > retain type_alpha type_beta....... ''; > > is there a way to avoid doing this... > > if "condition" then do; > output; > score_alpha=0;score_beta=0...... > end; > > I work in windows with V9.1. Thanks in advance for your help! > > > ************************************ > John Bonett > ETS > R & D Division > jbonett@ets.org <mailto:jbonett@ets.org> > > "If your experiment works, you obviously did something wrong."- > addendum to Murphy's Law > > > ************************************ > > > > ************************************************************************** This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited. Thank you for your compliance.


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