SNAX Creator-2 Configuration and Control Manual
Generating METHOD Values
Configuration Examples
117143 SNAX Creator-2 Configuration and Control Manual C–5
To load-balance logon requests to the same application, the programs all point to the
same application, as defined for example by the INITIAL sco3270 clause.
Using Literal Values This example specifies literal values for the PATHMON and PROGRAM attributes.
The SNAX Creator-2 application named mypath is configured to load balance
consecutive requests as follows:
ADD APPL $CREA.C-mypath
, METHOD PATHWAY
, PATHMON $pmon
, PROGRAM "myprog-1 myprog-2 myprog-3"
SNAX Creator-2 selects one of the PROGRAM names myprog-1, myprog-2, or
myprog-3 to pass to PATHMON.
Using the [#num] Function This example provides a PROGRAM value equivalent to the previous example by
using the [#num] built-in function. The [#
num
] built-in function facilitates decoding of
user data that is structured with positional parameters.
The SNAX Creator-2 application named mypath is configured to load balance
consecutive requests as follows:
ADD APPL $CREA.C-mypath
, METHOD PATHWAY
, PATHMON $pmon
, PROGRAM "[#1]-1 [#1]-2 [#1]-3"
If the user data is:
myprog
then the value of the PROGRAM attribute is:
myprog-1 myprog-2 myprog-3
SNAX Creator-2 then selects one of these names to pass to PATHMON.
Generating METHOD
Values
This example shows how one APPL definition can service all three types of
applications (TACL, Pathway, and server-started) using the [#num] built-in function.
The [#num] built-in function facilitates decoding of user data that is structured with
positional parameters.
In this example, the application named billing is configured as follows:
ADD APPL $CREA.C-billing
, METHOD [#1]
, PATHMON [#2]
, PROGRAM [#3]
, PRIMARYCPU [#2]
, SERVER [#2]
, MESSAGE [#OPENNAME]