You can use the SAS system option INITCMD to execute
a
SAS/AF application when
a SAS session starts and to open the AF window without opening any
intervening SAS windows such as the PROGRAM EDITOR, LOG, or OUTPUT
windows. The INITCMD system option must either be used in conjunction
with the command that starts the SAS session or be specified in the
SAS configuration file.
When you invoke your
application with the INITCMD system option, the SAS session automatically
ends when the application ends.
Refer to the
SAS System Options: Reference for more information about the INITCMD system option.