Specifying that an exit routine is compiled code

To tell IDF that your exit routine is written in a compiled language, set the CMPEXIT option. Here is an example profile which specifies a compiled-language exit routine:
Figure 1. Specifying a compiled-code exit routine
/*--------------------------------------------------------*/
Trace ?O
'MACRO PROFILE PROFILE' /* execute usual profile  */
'SET EXIT ASMIDFEX'     /* define name of exit module */
'SET CMPEXIT ON'        /* indicate compiled code exit */
'SET EXITEXEC ON'       /* activate exit routine       */
Exit

The compiled-code exit routine is invoked to examine the same events as an exit routine that is written in REXX.

On CMS, It is not required that you run IDF with PER exploitation disabled, but it is highly recommended for applications that collect execution data because:
  1. Performance with PER=Y is much slower than with PER=N
  2. IDF operation with PER=Y is not as robust as with PER=N