To automatically update the symbolic information in your PROTSYM file whenever a COBOL II program is compiled, you can add a postprocessor step directly to the JCL procedure that you use to compile your programs.
Note: These same steps also apply to the CA Optimizer/II procedure.
Follow these steps to update your existing compile procedure:
The following example shows modifications to a compile procedure:
//COB EXEC PGM=IGYCRCTL,REGION=4M,
// PARM='S,MAP,X,LIST,NONUM,&OPTIONS' <= 1
(Your existing DD statements for COBOL II)
//SYSPRINT DD DSN=&&LST,DISP=(NEW,PASS), <= 2
// UNIT=SYSDA,SPACE=(CYL,(1,2))
//*
//* GENERATE THE PARAMETER STATEMENT FOR IN25COB2
//*
//CARDS EXEC PGM=IN25PARM,REGION=1M,COND=(4,LT), <= 3
// PARM='&MEMBER,LISTER=ALL'
//STEPLIB DD DSN=CAI.CAVHLOAD,DISP=SHR
//CARDS DD DSN=&&CARDS,DISP=(NEW,PASS),
// UNIT=SYSDA,SPACE=(TRK,(1,1))
//*
//* POST-PROCESS THE COMPILER LISTING
//*
//SYM EXEC PGM=IN25COB2,REGION=4M,COND=(4,LT) <= 4
//STEPLIB DD DSN=CAI.CAVHLOAD,DISP=SHR
//PROTSYM DD DSN=USER.PROTSYM,DISP=SHR
//OUTPUT DD SYSOUT=*,
// DCB=(LRECL=133,BLKSIZE=3990,RECFM=FBA)
//INPUT DD DSN=&&LST,DISP=(OLD,PASS) (See Note 1)
//CARDS DD DSN=&&CARDS,DISP=(OLD,DELETE) (See Note 2)
//MESSAGE DD SYSOUT=*
//*
//PRINT EXEC PGM=IEBGENER,COND=(5,GT,COB) <= 5
//SYSUT1 DD DSN=&&LST,DISP=(OLD,DELETE)
//SYSUT2 DD SYSOUT=*
//SYSPRINT DD DUMMY
//SYSIN DD DUMMY
Notes:
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |