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