The AF and AFAPPLICATION
commands can pass option values to your FRAME, PROGRAM, and SCL applications.
The general form for application options is
<option-name=>option-value <... <option-name-n=>option-value-n>
For example, if you
design an application that requires a list of observation numbers
as input, you can invoke the application with the following AF command:
af c=master.apps.obs.scl obs=17 23 19 47
The AF task stores the
specified options and their values in a special list called _CMDLIST_.
This list is a sublist of the SCL local environment list that is
created when a
SAS/AF application
is invoked.
If the option is specified
in the form
name=
value (for
example,
OBS=17
), then both the name
and the value are stored in the list; otherwise just the value (for
example, 23 or 19) is stored. In this case
value is
a number. However, it also can be one of the following:
-
an unquoted text string such as
YES
or
NO
-
a quoted text string such as
'Apply
SAS Software'
-
a hexadecimal string such as
'534153'x
-
a date, time, or datetime literal
such as
'19Jun1991'D
.
If you want several
words to be treated as one argument, you must enclose them in quotes.
You can use the list
manipulation functions in SAS Component Language to extract the option
values and to use them in your applications. Refer to the
SAS Component Language: Reference for information about SCL list functions.