Date: Tue, 25 Mar 2003 12:34:53 +0100
Reply-To: "Dr. Olaf Kruse" <olaf.kruse@VST-GMBH.DE>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Dr. Olaf Kruse" <olaf.kruse@VST-GMBH.DE>
Content-Type: text/plain; charset="iso-8859-1"
Hi Myra,
one more idea: Accept the opinion of your boss (remember Don Quichote), but
show him, that you are still in command of the SAS-language.
E.g. replace long if-then-else-statements with a more elegant
select-statement:
select;
when <first selection-criteria >
do;
<SAS- statements>
end;
[...]
when <last selection-criteria >
do;
<SAS- statements>
end;
otherwise;
do;
<SAS- statements>
end;
end; /* of select */
It doesn't save much code, but it avoids errors by omitting an
else-statement in the middle of a long if-then-else-sequence.
Cheers, Olaf
|