How to write JCL if the cobol program is connected with DB2 Database and SOME of the DB2 statements are written in SUB-PROGRAM. Assume the CALL is a STATIC CALL ?

Showing Answers 1 - 3 of 3 Answers

tag_tushar

  • Oct 3rd, 2010
 

Name of the main program            = ABC.XYZ.COBDB2(MAINPGM)
Name of the sub-routine program = ABC.XYZ.COBDB2(SUBPGM)

Pre-compile JCL:
//JOBNAME  JOB NOTIFY=&SYSUID,PRTY=15,REGION=7M
//JOBPROC  JCLLIB ORDER=SYSTEM.LIBRARY.PROC
//DB2ICOB  EXEC PRECLINK,
//    COPYLIB='ABC.XYZ.COPYLIB',
//    MEM=EMP,
//    DBRMLIB='ABC.XYZ.DBRMLIB',
//    LOADLIB='ABC.XYZ.LOADLIB',
//    LMOD=MAINPGM
//SYSIN DD  DSN=ABC.XYZ.COBDB2(MAINPGM),DISP=SHR
//          DD  DSN=ABC.XYZ.COBDB2(SUBPGM),DISP=SHR   
//LKED.SYSIN   DD *
       INCLUDE SYSLIB(DSNELI)
/*

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions