Skip to main content

Problem:

This error occurs  because the the program has not been  compiled properly for using the profiler.  The cobprof command cannot be used until the the program has been compiled with the PROFILE compiler directive.

Resolution:

Step 1 the program must be compiled for debugging adding the -a flag for .int or -g flag for .gnt, .o, shared object or executable also specify the compiler directive -C PROFILE.

Example:  cob -xg -C PROFILE  pgmname.cbl

Step 2 is to execute the program ./pgmname  this will create the pgmname.ipf file.

Step 3 is run the profiler reports

Example: cobprof  pgmname   LIST

This will display the profile information on the screen.  If you do not set the LIST Profiler directive, then by default the output is produced in a file called pgmname.prf.

Documentation on using the COBOL Profiler can be found in the Server Express Utilities Guide.

Old KB# 3679