The name and location of the currently executing SAS program can automatically be displayed along with the output that it generates through the use of the SAS_EXECFILEPATH environmental variable.
Thanks to Art Carpenter and Mary Rosenbloom for this tip. Read more details in this paper from WUSS 2017: I've Got to Hand It to You: Portable Programming Techniques.