Friedman’s test enables you to compare the locations of three or more dependent samples. You can obtain Friedman’s chi-square with the FREQ procedure by using the CMH2 option with SCORES=RANK and by looking at the second CMH statistic in the output. For an example, see Chapter 38: The FREQ Procedure, which also contains formulas and other details about the CMH statistics. For a discussion of how to use the RANK and GLM procedures to obtain Friedman’s test, see Ipe (1987).