Hi @raghidazamzam,
The PERSIST (or PERSIST=PROC) option of the ODS OUTPUT statement keeps the output dataset (here: CHISQ) open in order to allow each of the six PROC FREQ steps to contribute one observation to it. (Obviously, it's more convenient to end up with one dataset with six obs. than to have six datasets with one obs. each.) Once you submit
ods output clear;
(as suggested in the usage note), the dataset is closed so that you can work with it. This is indicated by the log message
NOTE: The data set WORK.CHISQ has 6 observations and 7 variables.
Alternatively, you can close the OUTPUT destination with
ods output close;
... View more