Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Multiple COBOL-DB2 pragrams calling by different plan

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
deepak_shrivastava

New User


Joined: 05 Jan 2016
Posts: 8
Location: India

PostPosted: Wed Jan 06, 2016 3:45 pm    Post subject: Multiple COBOL-DB2 pragrams calling by different plan
Reply with quote

Hi All,

I have one scenario, it will be great if some one advice and answer.

I have below 4 programs
PROG1(COBOL Program).
PROG2(COBOL-DB2 Program) uses DB2 Plan ABC123.
PROG3(COBOL Program).
PROG4(COBOL-DB2 Program) uses DB2 Plan XYX456.

If PROG1 call PROG2 and PROG2 call PROG3 and PROG3 call PROG4.
(PROG01->PROG02->PROG03->PROG04)

While calling from JCL we usually write as below
//BLASTP00 EXEC PGM=IKJEFT01,REGION=6M,TIME=60,
// PARM=('%DB2EXECE SY(DB2C) PL(ABC123) PR(PORG1)')

But How to pass Plan name for PROG4 ?
How PROG02 will get plan name from base program PORG1 ?
Back to top
View user's profile Send private message

Rohit Umarjikar

Senior Member


Joined: 21 Sep 2010
Posts: 1819
Location: NY,USA

PostPosted: Wed Apr 20, 2016 8:26 pm    Post subject:
Reply with quote

I hope by now you got it working and understand how it works but to answer the post, each program (or subprogram) that contains SQL needs to be pre-processed to create a DBRM. The DBRM is then bound into a PLAN that is accessed by a LOAD module at run time to obtain the correct DB/2 access paths for the SQL statements it contains.

The basic process remains the same - you need a PLAN to run the program and check PLANs + COLLECTIONs + VERSIONs + PACKAGEs + DBRMs = Confusion to avoid anymore confusion.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Cobol to fetch the content by using s... arunc55 COBOL Programming 4 Fri Nov 17, 2017 1:25 pm
No new posts Calling IKJEFT01 program from Rexx upendrasri CLIST & REXX 4 Wed Nov 15, 2017 4:27 pm
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts Formatting multiple records to a sing... Vignesh Sid SYNCSORT 3 Tue Nov 07, 2017 12:22 pm
No new posts Updating multiple counts in trailer!! Vignesh Sid SYNCSORT 4 Mon Nov 06, 2017 1:04 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us