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.