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:25:33 -0400
Reply-To:   diskin@alum.rpi.edu
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Dennis Diskin <ddiskin@GMAIL.COM>
Subject:   Re: Way to auto reset retained values to initial value....?
Comments:   To: "Bonett, John" <jbonett@ets.org>
In-Reply-To:   <EF5DF4C5DB7BD311816D00007789395B1D312DD1@rosnt50.ets.org>
Content-Type:   text/plain; charset=ISO-8859-1

John,

The only way I can think of is to put them in arrays grouped by the initial value desired and loop through all the array entries.

HTH, Dennis Diskin

On 4/15/05, Bonett, John <jbonett@ets.org> wrote: > 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