If nobody else is using the transaction that you are investigating,
you can tell from CICS® statistics
whether the program has run.
About this task
You can use the
CEMT PERFORM STATISTICS RECORD or
CEMT
INQUIRE PROGRAM command to obtain statistics that indicate
whether the program has run. Use one of the following procedures.
Procedure
- Use the CEMT PERFORM STATISTICS RECORD command.
- Enter the command CEMT PERFORM STATISTICS
RECORD, using the TRANSACTION option, before you test
your transaction.
CEMT PERFORM STATISTICS RECORD
[TRANSACTION]
Statistics on transactions that have been
run are recorded in the SMF data set.
- Initiate the transaction and wait until it should have
run.
- Repeat the CEMT PERFORM STATISTICS RECORD command
to get a new set of statistics written to the SMF data set.
- Format the SMF data set for the APPLID that interests
you, and look at the statistics recorded before and after you attempted
to run the transaction. You can use the statistics utility
program, DFHSTUP, to prepare and print reports offline using the data
recorded in the SMF data set. The following control parameters can
be useful:
SELECT APPLID=
COLLECTION TYPE=REQ
TIME START= ,STOP=
DATE START= ,STOP=
If the count for
your transaction increased by 1, the transaction ran. If the count
is unchanged, the transaction did not run.
- Use the CEMT INQUIRE PROGRAM command.
- Enter the command CEMT INQUIRE PROGRAM(program),
where program is the program name. The
resulting screen includes a USECOUNT value. This value is the number
of times that the program has run since the start of the current CICS session.
- Initiate the transaction and wait until it should have
run.
- Enter the CEMT INQUIRE PROGRAM command
again. If the program has run, the USECOUNT value is incremented.
The USECOUNT value is not reset as part of statistics. When
the USECOUNT value reaches its maximum (2147483647), it does not increment
but remains fixed at that maximum value.