Page 1 of 1

How to link edit CEEOUPT whit program.

PostPosted: Sat Dec 06, 2014 10:03 pm
by MeSh
Dear friends
I have a dificult problem to understanding how to use lanquage envirounment run time option in a CICS COBOL program.
I try and reading manuals of IBM but not subject cleared for me. I want only to know How I can Link-edit a CEEUOPT whit my program.
First I Assemble and link edit the CEEUOPT and put it on a Liberary. Then I compile my cobol program and produce an OBJECT code of this. Now what I must to du? Whit which sysnax.
I know I must use HEWL program to linkedit them. But which dataset and member (OJBECT code of CEEUOPT or load module of CEEUOPT that was created) I must use in SYSLIB and SYSLIN of HEWL program? Is the following job true?
//LINKER    JOB CLASS=A,MSGCLASS=X,NOTIFY=&SYSUID                 
//LKED   EXEC PGM=HEWL,REGION=0M #-LINK-EDIT STEP                 
//SYSLIB  DD  DSNAME=CEE.SCEELKED,DISP=SHR                         
//        DD  DSNAME=CEE.SCEERUN,DISP=SHR                         
//        DD  DSNAME=CEE.SCEERUN2,DISP=SHR                         
//        DD  DSNAME=CICSTS41.CICS.SDFHLOAD,DISP=SHR               
//SYSPRINT DD  SYSOUT=*                                           
//SYSLIN  DD  DSNAME=OPR23.BNK.OBJDECK(MYPROG1),DISP=SHR         
//SYSIN   DD *                                                     
     INCLUDE SYSLIB(CEEUOPT)                                       
//SYSLMOD DD  DSNAME=OPR23.BNK.PROGLOAD(MYPROG1),DISP=SHR         
//SYSUT1  DD  UNIT=SYSALLDA,SPACE=(TRK,(10,10))                   


I want to know that in this JCL "I must identify the CEEUOPT object code or CEEUOPT load module"?
What is another way to introduce a LE runtime option to a CICS Cobol program?
Thanks a lot

Re: How to link edit CEEOUPT whit program.

PostPosted: Sun Dec 07, 2014 12:36 am
by Robert Sample
The usual way to invoke an LE run-time option in a batch program is to use the PARM= option of the EXEC statement. If you must use CEEUOPT, you compile it into a load module using the provided sample JCL; you then INCLUDE the load module CEEUOPT in your application program compile. How to do that will depend upon your site and how it compiles programs (the process varies by site quite a bit).