In reply to Charles.

I am not sure I understand your data. You should use a BY statement to run statistics on the subgroups. I'm not sure what you mean by "100 variables." Do you want tests of independence for 100 one categorical variables? I suggest you post your problem, your code, and sample data to the SAS Support Communities.