Mārtiņš Liberts (djhurio) rakstīja, @ 2007-01-02 01:37:00 |
|
|||
Mūzika: | Verbrilli Sound - Dizney (Groove Salad: a nicely chilled plate of ambient beats and grooves. [SomaFM |
spss
***********Defining macro inside macro.
define !ismax(var=!tok(1))
sort cases by !var (d).
do if $casenum=1.
write out="C:\temp\incl.sps"
/"define !max() " !var " !end.".
end if.
exe.
include "C:\temp\incl.sps".
comp ismax=!var=!max.
exe.
!enddefine.
***.
get file="C:\Program Files\SPSS Evaluation\Cars.sav".
!ismax var=year.
Bet šonakt izteikti nenāk miegs ...