PROC SCAPROC may be an option but I'm not aware of anything that will tell you only variables references. The ability to use short cut references or macro variables also make it difficult to create a program scanner to do this as well though people have tried. You can find examples of code/log parsers on lexjansen.com
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Registration is open
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss. Register now and lock in 2025 pricing—just $495!