|
|
9#

楼主 |
发表于 2008-10-16 06:01:59
|
只看该作者
Re: 菜鸟请教 -- 如何循环?
You're the man, urchin,
Thanks a lot for your detailed explanation.
However, it does not work if I
1. remove the %let .... line.
2. change the double quotes to single quotes,
it became: [color=#4040FF:kpszkujj]If _office="|| office ||" [/color:kpszkujj]; instead of [color=#4040FF:kpszkujj] if _office='Z';[/color:kpszkujj]
How can I add a where statement in Proc Freq or Proc Sort.... so that I can save the trouble of creating the in.One_office dataset?
Your "Do while" works great ! That's really what I want to know.
In SAS, do we have a similar loop like Scan .......End ?
Thanks again. |
|