pratheepr
New User
Joined: 16 Mar 2005 Posts: 1 Location: India
|
|
|
|
Hi ,
I have a program that accesses both IMS segments as well as DB2 tables .
The JCL for the above program is this :
Code: |
//CLL002Q JOB (CLL002Q,QND),
// 'CLOSED LOOP',
// CLASS=J,
// REGION=6144K,
// MSGLEVEL=(1,1),
// MSGCLASS=X,
// NOTIFY=SBOPCTL,
// RESTART=CLL002YC.G
/*JOBPARM L=999,T=999,PROCLIB=PROC00
//JOBLIB DD DSNAME=PBDK.OBJLIB.COBOL,
// DISP=SHR
//**********************************************************************
//* UPDATED IN QND 10/31/03 BY J.DAVEY FOR M.GALVIN
//**********************************************************************
//* THIS STEP WILL BUILD A SEQUENTIAL FILE OF LOCATIONS. **
//**********************************************************************
//CLL002YC EXEC IMSBATCH,
// MBR=CLL002YC,
// PSB=CLL002YC,
// SYSTEM=PBDK,
// IMSID=IMSP
//LOCLOP1O DD DSN=PBDKD.PRODLOC.OLOCLOP1,
// DISP=SHR
//ZHORT1 DD DSN=PBDKV.PRODGDF.EZHORT1,
// DISP=SHR
//LOCFIL DD DSN=PBDKS.PRODCLL.PLANT.LOCATION,
// DISP=SHR
//* DISP=(NEW,CATLG,DELETE),
//* UNIT=SYSPD,
//* SPACE=(CYL,(2,2),RLSE),
//* DCB=(LRECL=841,RECFM=FB,BLKSIZE=0)
//SYSUDUMP DD SYSOUT=*
//SYSABEND DD SYSOUT=*
//SYSABOUT DD SYSOUT=*
//SYSDBOUT DD SYSOUT=*
//SYSOUT DD SYSOUT=*
//CTLRPT DD SYSOUT=*
/*
// |
This program executes in production . But, I'mnt sure as how the DB2 plans are being referenced and where to put the DB2 package when it comes to test environemnt.How do i find that information ? |
|
Vijay Bhadauria
New User
Joined: 28 Mar 2005 Posts: 8
|
|
|
|
Hi Pradeep,
If you are running you JCL under IMS (BMP mode) then the DB2 package name must be same as the program name. Some DB2 Plan name already been assigned to IMS region at the time of IMS region creation. Also DB2 region(s) will be defined under IMS region (in your case its IMSP) as DB2 always runs under IMS in an IMS ?DB2 setup.
So, no need to provide Plan/Package name at the time of running IMS batch job in 'BMP' mode.
And if you want to run the same program in IMS Test region the just you need amend you JCL to point to required IMS Test region (could be IMST ....) and also needs to point all the other referenced IMS/Load libraries to test. Also needs to bind your package with test DB2 region assigned to your IMS test region.
But if you are running your program in DLI mode then you need to supply Plan and Package name through your JCL. |
|