Cochran's Q

#1
Does anyone know if I can use syntax to enable SPSS to do a Cochran's Q test in a mixed-design (with both within-subjects and between-subjects variables). If so, how can I find this syntax?

Thanks!