In reply to whymath.

Thanks for writing. I don't know what "Fisher test" you want, but there is an test known as Fisher's Exact Test for 2x2 tables in PROC FREQ. See https://blogs.sas.com/content/iml/2015/10/26/exact-tests-proc-freq.html

For large samples, you can perform an accurate Fisher test by using the MC option on the EXACT statement, which performs a Monte Carlo approximation. See