[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
Re: st: Problem with foreach loops
At 06:35 PM 6/7/2004 +1000, Ian Watson wrote:
Perhaps I misunderstand you, but isn't this example from the online docs
(which might be more current than the manual) what you mean?
I've also checked -recode-, and while the manual shows how multiple
variables can be recoded in one statement, there is no example of how
one might implement the -gen- option for multiple variables. Perhaps
someone on the list knows the trick?
recode x1 x2 (1 2 3/5=1) (6/10=2), gen(nx1 nx2)
In the case of your original example (following is meant to be all one line)
recode ajbmspay ajbmssec ajbmswrk ajbmshrs ajbmsflx ajbmsall(-4 -3 -1=.),
gen(a_pay a_security a_work a_hours a_flexibility a_overall)
* For searches and help try: