|
Hi All,
based on a IF rule, Is it possible to assign a single value to a series
of variables(broken)??
for eg, I've variables CARD22,CARD34,CARD44,CARD55..etc(note that the
variables are not continuous)
and with the value of a variable X , i want to do the following!
If X='BALANCE' Then do;
CCARD22=-99;
CCARD34=-99;
CCARD44=-99;
CCARD55=-99;
..
..
..
End;
Of course, I have 50+ CCARD Variables and don't wanna do it with the
help if assignment statements. Even if we go for a MACRO'y solution, I
need to pass the 22,34,44,55 as parameters!!! is there any short cut
(which surely i'm not aware)..to shorten my code ?
thanks
Easwara
|