It would help if you shared your code. The set-up (40 records per subject) is appropriate for a repeated measures analysis (you would want the repeated records for the demographics and the REPEATED statement would take care of the actual sample size). If you are looking for a Multivariate ANOVA, with say 40 outcome measures per subject, then you need to reframe your data to get one (long) record per ID. You can do that by using PROC TRANSPOSE on the repeated records to stretch them out and then merging with the dmographics.
Doc Muhlbaier
Duke
... View more