CICS Commands

 <  Day Day Up  >  

The CICS commands affect the operation of DB2 and CICS. CICS commands must be issued from a valid terminal connected to CICS, and the issuer must have the appropriate CICS authority.

All CICS commands that pertain to DB2 are prefixed with DSNC . DSNC is a CICS transaction that enables the execution of DB2 commands from a CICS terminal.

The following CICS commands pertain to DB2:

DSNC

Enables the user to issue DB2 environment commands from a CICS terminal. For example:

 DSNC -DISPLAY THREAD(*) 

DSNC is also a required prefix for all CICS commands related to DB2.

DSNC DISCONNECT

Enables the user to disconnect DB2 threads.

DSNC DISPLAY

Displays resource and statistical information for CICS transactions that access DB2 data. If more than one page of information is displayed by this command, use the following syntax to page through the information. At the top of the CICS screen, enter P/ x , where x is a number indicating which page to display. P/1 displays page 1, P/2 displays page 2, and so on.

DSNC MODIFY

Enables the modification of the message queue destination of the DB2CONN ; and the maximum active thread value for the pool, for DSNC commands, or for DB2ENTRY .

DSNC STOP

Disables the CICS attachment to DB2.

DSNC STRT

Enables the CICS attachment to DB2.


CICS Command Guidelines

The following techniques are useful when issuing CICS commands that impact DB2.

Control the Use of Critical CICS Commands

The DSNC DISCONNECT , DSNC MODIFY , DSNC STRT , and DSNC STOP commands should be secured commands. Because these commands can damage CICS transactions that are being processed , they should be avoided during peak processing times. A centralized authority consisting of only systems programmers and DBAs should administer and invoke these commands.

Use DSNC DISPLAY PLAN to Monitor DB2 Threads

Use the DSNC DISPLAY PLAN (or DSNC DISPLAY TRANSACTION ) command to get information about DB2 threads. For each created thread, the following output is returned:

DB2ENTRY

Name of the DB2ENTRY , *COMMAND for DSNC command calls, or *POOL for pool statistics.

S

Status of the threads where "A" indicates active within a unit of work and "I" indicates that a protected thread is waiting for work.

PLAN

Plan name associated with this thread.

PRI “AUTH

Primary authorization ID for the thread.

SEC “AUTH

Secondary authorization ID for the thread, if one exists.

CORRELATION

Correlation ID for the thread (12 bytes).


Use DSNC DISPLAY STATISTICS to Monitor DB2 Transaction Information

Use the DSNC DISPLAY STATISTICS command to obtain statistics for DB2 transactions. The information provided by this command is an accumulation of statistical counters because the CICS attachment to DB2 is activated with the DSNC STRT command. Directly after the DB2 subsystem is attached to CICS, all of these numbers are 0; this should be taken into account in analyzing these statistics. For example, these counters are significantly smaller if the attachment is stopped and started daily instead of once a month.

The DSNC DISPLAY STATISTICS command will provide the following output:

DB2ENTRY

Name of the DB2ENTRY , *COMMAND for DSNC command calls, or *POOL for pool statistics.

PLAN

Plan name associated with this entry. DSNC does not have a transaction associated with it, so PLAN is blank. A string of asterisks indicates that dynamic plan allocation was specified for this entry.

CALLS

Number of SQL executions issued by transactions associated with this RCT entry.

AUTHS

Number of sign-ons for transactions associated with this RCT entry. A sign-on occurs only when a new thread is created or when an existing thread is reused with a new authid or a different plan.

W/P

Number of times any transaction associated with this entry was diverted to the pool or had to wait for an available thread.

HIGH

High-water mark for the number of threads needed by any transaction associated with this entry.

ABORTS

Number of aborts, including both abends and rollbacks , encountered by transactions associated with this entry.

COMMITS

Number of COMMIT s executed by transactions associated with this entry.

1-PHASE

Number of single phase commits for transactions associated with this entry.

2-PHASE

Number of two-phase commits for transactions associated with this entry.


 <  Day Day Up  >  


DB2 Developers Guide
DB2 Developers Guide (5th Edition)
ISBN: 0672326132
EAN: 2147483647
Year: 2004
Pages: 388

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net