If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > Creation of Package and Plan in DB2 v10

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-20-11, 23:44
perumj1 perumj1 is offline
Registered User
 
Join Date: Oct 2010
Posts: 33
Question Creation of Package and Plan in DB2 v10

Hi,

We have installed a DB2 V10.1 in our Z/OS machine. Here for the application developers we are need of creating a Package and Plan, so that the application users can use that plan for bind. I have seen the package looks like below :

DBRM µSYSADM TCHPK339 ȿРÎC¯ 2

DBRM B wDECLARE PRODUCT TABLE ( PRODUCT_ID SMALLINT NOT
RODUCT_NAME CHAR ( 30 ) , PRODUCT_TYPE CHAR ( 3 ) , MANUFACTURED_DATE DA
DUCT_COST DECIMAL ( 7 , 2 ) )
DBRM . DECLARE PRODC CURSOR FOR SELECT * FROM PRODUCT
DBRM OPEN PRODC
DBRM FETCH PRODC INTO : H , : H , : H , : H , : H
4 WS-PRODUCT.WS-PRODUCT-ID D WS-PRODUCT.
CT-NAME D WS-PRODUCT.WS-PRODUCT-TYPE D
PRODUCT.WS-MANUFACTURED-DATE U WS-PRODUCT.WS-PRODUCT-


Would someone Please help me in creating a package and plan in a new DB2 subsystem. Please provide me a sequence to create it. I am a Z series guy but I hardly have some knowledge on this creation of plan and packages. I could learn later, but for now if you can show me an example of creation then i would be really grateful.

Regards,
Jags
Reply With Quote
  #2 (permalink)  
Old 06-21-11, 01:39
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,198
You need to use the bind command, specifying the DBRM source code. If you need some help, you should probably contact your DBA. If you don't have a DBA, hire one.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On