SNAX Creator-2 Configuration and Control Manual

Generating SERVER and MESSAGE Values
Configuration Examples
117143 SNAX Creator-2 Configuration and Control Manual C–3
The application named myserv is configured as follows:
ADD APPL $CREA.C-myserv
, METHOD SERVER
, SERVER $serv1
, MESSAGE "314159"
The logon user data is ignored.
Using the [#KEYWORD]
Function
This example shows how to derive values for the SERVER and MESSAGE attributes
with the [#KEYWORD] built-in function. The [#KEYWORD] built-in function
facilitates decoding of user data that is structured with keywords.
The application named myserv is configured as follows:
ADD APPL $CREA.C-myserv
, METHOD SERVER
, SERVER "[#KEYWORD Name $serv]"
, MESSAGE "[#KEYWORD Data]"
Suppose the user data is:
Name $serv1, Data 314159
Then the value of the SERVER attribute is provided by the value following the Name
keyword, that is $serv1. If the Name parameter is missing or has a blank value, the
value of the SERVER attribute would defaults to $serv. The value of the MESSAGE
attribute is provided by the value following the Data keyword, that is 314159.
Parameter values are read from the first non-blank after the keyword to the next
comma or end of data.
Using the [#num] Function This example shows how to derive a value for the SERVER and MESSAGE attributes
with the [#
num
] built-in function. The [#
num
] built-in function facilitates decoding of
user data that is structured with positional parameters.
The application named myserv is configured as follows:
ADD APPL $CREA.C-myserv
, METHOD SERVER
, SERVER "[#1]"
, MESSAGE "[#2]"
Suppose the user data is:
$serv1, 314159
Then the value of the SERVER attribute is provided by the first parameter, $serv1.
The value of the MESSAGE attribute is provided by the second parameter, 314159.
Parameters are read from the first non-blank to the next comma or end of data.
Using the [#num1:num2]
Function
This example shows how to derive a value for the MESSAGE attribute using the
[#num1:num2] built-in function. The [#num1:num2] built-in function facilitates
decoding of user data that is structured with positional parameters.