In reply to Pradip.

Sort the data by your ID variables, then list the ID variables on the BY statement in PROC FREQ. You'll get results for each distinct combination of your ID variables.