This section provides you with some notes/suggestions you should take into account when you use the COUNT function.
The COUNT function performs tasks not described by COBOL statements, such as gathering COUNT information. When this function is used, it will increase your program in size and slow down its executing speed. Therefore, it is recommended to use this only for debugging activities. Debugged programs should be recompiled with the compile option NOCOUNT specified.
If a file is produced due to the abnormal termination of a program, the statement that has caused it will be included in the report.
If a CANCEL statement is executed, COUNT information for the program to be canceled will be written. If the canceled program calls another program, COUNT information for the latter program will be shown under the calling program.
You should specify the SYSCOUNT environment variable to define an output file name.
When an application called from a different language program terminates abnormally, the COUNT information might not be output.
COUNT information is output to the output file specified for environment variable SYSCOUNT. It cannot be output from two or more processes to the same file at the same time - this will produce an output error at execution time. Change the output file name of each process when you execute two or more processes at the same time.