Modifying a connection from a CICS application program

To modify a connection from a CICS program, the program must link to the adapter reset program, CSQCRST.

Figure 22 shows the format of the LINK command. It has the same effect as the command line requests described in Modifying a connection from the CICS command line.

Figure 22. Format of the MODIFY command issued from a CICS adapter application program

 EXEC CICS LINK PROGRAM('CSQCRST ')
           INPUTMSG('CKQC MODIFY     Y E <trace-number>')

The command shown in Figure 23 resets the connection statistics only.

Figure 23. Resetting connection statistics from a CICS program

 EXEC CICS LINK PROGRAM('CSQCRST ')
           INPUTMSG('CKQC MODIFY     Y')

The command shown in Figure 24 disables the API-crossing exit and changes the trace number to 121.

Figure 24. Linking to the adapter reset program, CSQCRST, from a CICS program

 EXEC CICS LINK PROGRAM('CSQCRST ')
           INPUTMSG('CKQC MODIFY     N D 121')
Note:
The MODIFY command must be padded to 10 characters, see Command syntax in application programs.