Chapter Contents

Previous

Next
SAS Companion for the Microsoft Windows Environment

Invoking SAS/AF Applications Automatically

The SAS System provides a system option, INITCMD, that lets you invoke SAS/AF programs automatically. When you use this option, the SAS System does not create the PROGRAM EDITOR, LOG, or OUTPUT windows but instead runs the SAS/AF applications and windowing environment commands that you specify.

The general syntax of the INITCMD option is:

-INITCMD "af-command" <DM-command-1...DM-command-n>

where af-command is a command to start an AF application, and DM-command-1 through DM-command-n are any windowing environment commands.

For example, the following option specification starts a SAS/AF application and loads a custom tool bar:

-initcmd "AF c=mylib.myapp.myfirst.frame;
  toolload bar mylib.myapp.profile.toolbox"

For more information about the INITCMD system option, see SAS Language Reference: Dictionary.


Chapter Contents

Previous

Next

Top of Page

Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.