SAS software: how to programmatically retrieve the name of the SAS program code file?

I want my SAS program to retrieve the filename associated with the SAS code I am currently running. That name is in the system somewhere – it’s displayed in the top border of the Program Editor window. It’s, what, a system macro variable? a special variable? is there a call routine? I’m not finding it.

My program creates a long report, and there are variants of the program. I want the report to include the name of the program variant that created it.

Thanks!!

This seems relevant. If not I blame the fact that I don’t know SAS and only felt like it should be googleable:

This seems on point 24301 - How to retrieve the program name that is currently running in batch mode or interactively

"To retrieve the name of the current program when you are running SAS®in batch mode, you can issue the following statement:

%put The current program is %sysfunc(getoption(sysin));"