You can use the EXEC CICS(R) LINK command to invoke most adapter control functions from CICS application programs. The syntax of the EXEC CICS LINK commands you need, and examples, are given for each task described later in this chapter.
Some commands issued in this way must be padded with trailing spaces to make the length of the command 10 characters. When an argument follows the command, an extra space character must be added as a separator (see Figure 6). The commands affected by this restriction and the number of trailing spaces required for each command are as follows:
Command | Number of trailing spaces (not including the separator) |
---|---|
START | 5 |
MODIFY | 4 |
STARTCKTI | 1 |
STOPCKTI | 2 |
With all other commands the padding is optional.
EXEC CICS LINK PROGRAM('CSQCRST ') INPUTMSG('CKQC MODIFY Y') ^ ^ ............ 1 12
Use the following rules to determine how to pass the parameters:
However, the adapter STOP commands:
CKQC STOP CKQC STOP FORCE
cannot be run at PLTPI time, regardless of whether you use the INPUTMSG option or the COMMAREA option.
If you invoke the adapter operation functions START and STOP from an application program using EXEC CICS LINK, the resultant messages are written to both the system console and a transient data queue (TDQ) named CKQQ. When the application program returns from the LINK, it can read back the messages by repeating EXEC CICS READQ TD QUEUE(CKQQ) until the queue is empty. The following restrictions apply:
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
csqsaw0338 |