Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Run program in PROD region to run in TEST region

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
kanisha_prabha

New User


Joined: 10 Mar 2006
Posts: 13

PostPosted: Thu Nov 23, 2006 5:35 pm    Post subject: Run program in PROD region to run in TEST region
Reply with quote

Hi,
I want a DB2-PLI program which is compile/bound in PROD region to run in TEST region. (There are a large no. of such programs that are used to set up a region with data and since they are in prod i dont want to compile/bind each of them in TEST). I am using IKJEFT01 utility to run programs. Firstly, Can i do it? If so, then how should i modify my run JCL?

//PPogram EXEC PGM=IKJEFT01,DYNAMNBR=20
//STEPLIB DD DSN=DSN2.DSNLOAD,DISP=SHR
// DD DSN=........PROD.LOAD,DISP=SHR
//I1PCHG DD DSN=........................,DISP=SHR
//O1REPT DD DSN=.........................,DISP=(,CATLG),
// UNIT=SYSDA,SPACE=(CYL,(5,5),RLSE),
// DCB=(RECFM=FBA,LRECL=133)
//O1PRICE DD DISP=(,CATLG),DSN=.........................,
// UNIT=SYSDA,SPACE=(CYL,(10,10),RLSE),
// DCB=(RECFM=FB,LRECL=74)
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD *
DSN SYSTEM(DB2D)
RUN PROG(MYPROG) PLAN(MYPLAN) PARM('/')
END
/*

TIA,
Kanisha.
Back to top
View user's profile Send private message
References
raak

Active User


Joined: 23 May 2006
Posts: 174
Location: chennai

PostPosted: Fri Nov 24, 2006 1:47 pm    Post subject:
Reply with quote

hi there,

i guess u need to compile and bind it everytime.... in our shop, for enterprise cobol conversion testing, we are doing like that....

not very sure whether there is something of the kind u r asking
Back to top
View user's profile Send private message
surya_pathaus

Active User


Joined: 28 Aug 2006
Posts: 92

PostPosted: Fri Nov 24, 2006 2:38 pm    Post subject: Re: Run program in PROD region to run in TEST region
Reply with quote

Hi,

Quote:

Firstly, Can i do it?


Your program is binded with Production Database, so whatever selection, updation, deletion process will be done on Production Database.

If you want to test it then be careful about Updations, insertions, deletions of tables. Only select/read of tables affected then you can continue your testing.


No need to change the JCL because Load library you need to pick from Production and Region you binded with Production.
Back to top
View user's profile Send private message
Nimesh.Srivastava

Active User


Joined: 30 Nov 2006
Posts: 76
Location: SINGAPORE

PostPosted: Thu Nov 30, 2006 10:38 pm    Post subject:
Reply with quote

Hi,
Okay here is what we do to run programs from production to test / UAT environment.
firstly for a DB2 program you need to definately bind the packages to your UAT plan in DB2. And then the same executable can be used to run the programs.
a sample run JCL would go like
//STEP010 EXEC PGM=IKJEFT01
//SYSTSPRT DD SYSOUT=X
//STEPLIB DD DSN=SYS2.DSNLOAD,DISP=SHR
//SYSTSIN DD *
DSN SYSTEM(DSN)
RUN PROGRAM(<your batch program>) PLAN(<UAT Plan>) -
LIBRARY ('<production load library>') -
PARMS('<optional parms>')
END
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 Hours
Page 1 of 1