*Hey Raynald, *I'm trying to automate a repeated measures ANOVA for 21 DVs (3 time points *for each one). I have the following, but right now, this means 21 lines of *macro calls...I dont wanna do that..please bless me with some knowledge. * our macro. define ovrtime (!positional !enclose ('(',')')). GLM !1 BY treatgrp /WSFACTOR = scales1 3 Polynomial /METHOD = SSTYPE(3) /PLOT = PROFILE( scales1*treatgrp ) /PRINT = DESCRIPTIVE HOMOGENEITY /CRITERIA = ALPHA(.05) /WSDESIGN = scales1 /DESIGN = treatgrp . !enddefine. ovrtime (anger1 anger2 anger3 ). ovrtime (anxm1 anxm2 anxm3 ). ovrtime (ccomm1 ccomm2 ccomm3 ). ovrtime (dcomm1dcomm2 dcomm3 ). *************************. * Ray's solution 2001/03/03. SET MPRINT=yes. *////////////////////////////. define ovrtime (!positional !enclose ('(',')') /n=!TOKENS(1)). !DO !fact !IN (!1) !LET !varstr=!BLANK(1) !DO !i=1 !TO !n !LET !varstr=!CONCAT(!varstr," ",!fact,!i) !DOEND GLM !varstr BY treatgrp /WSFACTOR = scales1 3 Polynomial /METHOD = SSTYPE(3) /PLOT = PROFILE( scales1*treatgrp ) /PRINT = DESCRIPTIVE HOMOGENEITY /CRITERIA = ALPHA(.05) /WSDESIGN = scales1 /DESIGN = treatgrp . !DOEND !enddefine. *////////////////////////////. ovrtime (anger anxm ccom dcom) n=3.