The client has hundreds of CA Optimized programs. When a program is optimized with CA Optimizer the CA Optimizer runtime must be stated on the LPAR in order for these programs to be executed.
In preparation for an upgrade from Z/OS 2.2 to Z/OS 2.4 the client was required to upgrade from the CA Optimizer release 7.0 runtime to the CA Optimizer/II r 8.5 runtime. The CA Optimizer r 7.0 runtime is no longer supported
and is replaced by the CA Optimizer/II r 8.5 runtime.
When the CA Optimized programs are executed using the CA Optimizer/II r 8.5 runtime they are abending with S322 timeout error. The same program successfully executes using the CA Optimizer r 7.0 runtime.
Several of the CA Optimized programs are have be compiled with the DETECT option. The DETECT option is a debugging option that is used during the program development cycle and adds a considerable amount of overhead to the execution of the program. Before a program is moved into production the program should be recompiled removing the DETECT option.
The following JCL executes the CA Optimizer utility program CAOUMRS for an application load library to identify which programs are compiled with the DETECT option.
//MRS EXEC PGM=CAOUMRS,REGION=256K
//STEPLIB DD DISP=SHR,DSN=HLQ.CARXLOAD
//SYSLIB DD DISP=SHR,DSN=APPLICATION LOAD LIBRARY
//SYSPRINT DD SYSOUT=*
In the example report below program TESTASR2 is an OS/VS program compile with the DETECT option.
LOAD LIBRARY ANALYSIS: DETAILED REPORT PAGE 1
LEGEND FOR OPTIMIZER OPTIONS:
D=DTECT C=XCOUNT X=XTIME P=PFLOW S=SUBRNGCK R=PARMCHK B=DBGSLEEP F=FDCHECK W=WSINIT I=CICS E=EOS L=WSCLEAR H=PUSHPOP O=CASORT
MODULE MODULE-SIZE CSECT CSECT-SIZE PROC-SIZE DATA-SIZE COMPILER-ID REL DATE TIME CA-OPT REL DCXPSRBFWIELHO
TESTASR2 3,664 TESTASR2 1,308 260 1,048 VSR1 5740-CB1 2.4 06/08/2022 8.59.15 OPT/OS 7.0 D.............
Recompile the production programs that have the DETECT option specified. Then rerun the CAOUMRS utility report and confirm the programs no longer have the DETECT option specified. Rerun the application program.