|
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.
|