![]() |
K2 key in Connections
The K2 key normally results in an immediate break to the command level of BS2000. In connections, it controls the switching from one connection to another, or to the basic level of CFS. When the K2 key is pressed, the following sequence of events takes place:
1) The current screen contents are saved.
2) If ACD (Automatic Connection Display) mode is switched on, all currently open connections are displayed (Standard).
3) A line is issued which indicates the connection in which the user currently operates.
4) The following message is issued:
"Return to CFS/Continue in Conn. n/Break ? (R/n/n cmd/B/BB/^cmd)"
Connections to $CONSOLE will result in the message:
"Console-input/continue in Conn. n/Break ? (input/R/n/^cmd/?)"
Connections to $CONSOLE in Asynchronous Mode (ACn) will result in the message:
"Input for Console n/Return to CFS ? (n input/R/^cmd/?)"
While in Connections to $CONSOLE and $VMCONS, the user has 2 minutes to answer messages. If nothing is entered during this time the display is switched back to console output. The system administrator can set this wait time in the CFSMAIN module, and it can be any value between 10 and 3600 seconds. If a value of 0 seconds is specified, this will cause CFS to wait for an unlimited period of time for input, as was the case in previous versions of CFS.
The following choices are available:
R Return to the CFS basic task. Entering the command CCn will switch the screen back to the connection number n.
input only applicable to a $CONSOLE connection: specified input is passed to console.
e.g.: tsn.INTR, STA MSG,ALL
n input only possible if multiple $CONSOLE connections have been established in Asynchronous Mode (Command ACn): specified input is passed to the console opened under connection n . e.g.: 1 tsn.INTR, 9 STA MSG,ALL
n Switch to the specified connection.
n is the number of a connection that has already been opened. n can also be the current connection again.
n cmd as above, but together with a command to be executed in the new connection (e.g. 2/STA L). n can also be the current connection again.
The cmd is executed immediately after branching to the subtask. If the connection user is in a mask or Physical Mode Input, cmd is not executed until the next Line Mode Input.
B Pass the K2 key to the communication partner. During extensive screen output, e.g. file entries following an FSTAT command, it can sometimes happen that K2 will only provide a BS2000 command prompt after many screens have scrolled by.
BB The K2 key will be simulated. In contrast to the option B (see above) the remaining extended messages (e.g. FSTAT listings) will be discarded.
^cmd CFS switches back to the basic task, executes the specified command (or sequence of commands), and, if possible, returns to the current connection. A detailed description of ^cmd is to be found in the next section "Escape Symbol in Connections".
The input ^2/ , for example, will open a connection 2 under the same userid, or branch to this connection if it is already open.
? Activating the Help System. The various input possibilities are described.
Notes:
Simply pressing DUE1 key without any parameters is the same as R (Return to CFS).
The special functions of the K2 key in CFS connections described above can be disabled for each connection seperately using the command DKCn (Direct K2-mode for Connection n). For further information, see page 9-.
Administration programs can also be run in connections under $DIALOG that require the K2 key to be pressed to receive an input request. To receive this input request in a CFS connection, press the K2 key, and then when asked, press B (Break).
It can happen in UTM/DCAM applications that K2 + n does not result in a branch to the desired connection n; rather, the switch is back to the basic level of CFS. If this happens, clear the screen with LSP (or Shift + Reset) after pressing K2, and only then enter the connection number n.
It can happen in UTM/DCAM applications such as OASE and ADABAS that the usual CFS Break query does not appear after pressing K2. There are two possibilities to resolve this problem:
- Clear the screen with LSP and then press K2.
- Use the escape symbol ^ / ^n to switch to the basic CFS task, or to another connection.
If the error message "Message cannot be displayed ..." appears in a $DIALOG connection, and the connection does not resume thereafter, pressing K2 and answering B (Break) will repeat the request. This may, under certain circumstances, have to be repeated many times, until the slash ("/"), or the SDF prompt ("KDO:" / "CMD:") appears.
The K2 key can be pressed at any time, for example during DO procedures, or while a program is running. On the other hand, the escape symbol (see next section), can only be entered when input is requested CFS.