SETTERM Verb - Reset Terminal Alias (BBj)
Syntax
SETTERM alias{,MODE="NOALIAS"}{,ERR=stmt}
Description
The SETTERM verb resets the terminal alias,
FID(0). BBj takes the optional ERR= branch if the specified alias does
not appear as a terminal alias in the config.bbx
file.
SETTERM can be used to force FID(0) to a selected value if required by the application, typically if the application runs in a browser.
Parameter |
Description |
alias |
New value of FID(0). This value must always start with "T". |
MODE="NOALIAS" |
By default, SETTERM verifies that the new FID(0) value is a terminal alias defined in the config.bbx file. Specifying MODE="NOALIAS" causes it to skip this step. |
ERR=lineref |
Branch taken if an error occurs during execution. |
Example 1
This example assumes that the terminal aliases in the config.bbx file have been defined with USERID=XXX
modes to associate users with terminal ids. For example:
|
Example 2
The application should start with a login step that prompts for a user
id, then resets FID(0) to the corresponding terminal id. See the example
below:
|