The name that is specified
by the LOGAPPLNAME= system option is used to identify the name of
a SAS session in logging facility logs if the S conversion character
is specified in the pattern layout.
You can use the &SYSLOGAPPLNAME
automatic macro variable to obtain the name of the SAS session in
a SAS program.