The xx's are changed to the appropriate department number by the CHANGE command in the SELECTION or DIALOG statement in the PROC PMENU step. PROC PRINT prints that data set.
   libname proclib 'SAS-data-library';

   proc print data=proclib.deptxx;
      title 'Information for deptxx';
   run;