MATRIX procedure enhancement
Posted by
jkpeck on
Sep 23, 2021; 7:17pm
URL: http://spssx-discussion.165.s1.nabble.com/MATRIX-procedure-enhancement-tp5740777.html
The Viewer output from the MATRIX procedure in SPSS Statistics is just plain text rather than the pivot tables produced by other procedures. But there is a little-known feature introduced back in version 24 to change this. As far as I can tell, almost no one knows about this even though it is documented in the CSR (which everyone surely reads cover to cover).
You can run the command SET MDISPLAY TABLES outside the MATRIX syntax to have the output from the PRINT command in MATRIX automatically displayed as pivot tables. None of the code in the MATRIX procedure needs to change.
I ran this on a few big MATRIX jobs, including Andrew Hayes' PROCESS job, and it worked perfectly. This mode does not affect titles or messages from the procedure.

SET MDISPLAY TEXT restore the plain text mode.