Index counters

WSim maintains from 3 to 4095 index counters or STL integer variables for each network, line, VTAM® application, CPI-C transaction program, and TCP/IP connection, device, and logical unit. The counters are called NCn, LCn, TCn, and DCn, where the first letter stands for network, line, terminal, and device, respectively, and n refers to the number of the specific counter. In STL, the variable names can be any valid STL variable name; see WSim Script Guide and Reference for more information. STL shared integer variables reference NCn counters and unshared integer variables reference DCn counters. While VTAM applications, CPI-C transaction programs, and TCP/IP connections do not have lines or terminals associated with them, each can have from 3 to 4095 line index counters (LCn) and from 3 to 4095 terminal index counters (TCn). Each LU defined for a VTAM application, transaction program defined for an APPC LU, or device defined for a TCP/IP connection can have from 3 to 4095 device index counters (DCn).

The CNTRS operand on the NTWRK statement determines the number of index counters that WSim maintains for each resource. If you specify any user exits, WSim allocates either the number of index counters or STL integer variables specified on the CNTRS operand or the number of counters referenced in the network, whichever is greater. If you do not specify any user exits, WSim allocates as many index counters as are needed and ignores the CNTRS operand. WSim allocates a minimum of three index counters.

You need to code the CNTRS operand only if you use a user exit that depends on the number of counters allocated.