MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Unable to bind a DB2 program SQLCODE = -219

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
mfuser
Banned


Joined: 01 Mar 2005
Posts: 105
Topics: 58

PostPosted: Wed May 31, 2006 5:07 am    Post subject: Unable to bind a DB2 program SQLCODE = -219 Reply with quote

Hai All,

I am trying to execute a DB2 program and i have got Precompiled successfully with RC=0.I am trying to BIND it and i am unable to bind as i get SQLCODE = -219.I created a table and inserted some values in the table and my program is simply selecting ? Can anybody help me out how can i resolve the problem ?

AFTER PRECOMPILE
Code:

SYSPRINT JS0010   PC 
SYSPRINT JS0010   COB
SYSPRINT JS0010   LKED
SYSTERM  JS0010   PC 

AFTER BIND
Code:

DSNX105I  @ BIND SQL WARNING                                                   
           USING ABCD AUTHORITY                                               
           PLAN=PROG                                                         
           DBRM=PROG                                                         
           STATEMENT=75                                                         
           SQLCODE=-219                                                         
           SQLSTATE=42704                                                       
           TOKENS=ABCD.PLAN_TABLE                                             
DSNT252I  @ DSNTBCM1 BIND OPTIONS FOR PLAN PROG                             
           ACTION        REPLACE                                               
      OWNER    ABCD                                           
           VALIDATE      RUN       
           ISOLATION     CS                                                     
           ACQUIRE       USE                                                   
           RELEASE       COMMIT                                                 
           EXPLAIN       YES                                                   
           DYNAMICRULES  RUN                                                   
DSNT253I  @ DSNTBCM1 BIND OPTIONS FOR PLAN PROG                             
           NODEFER       PREPARE                                               
           CACHESIZE     1024                                                   
           QUALIFIER     ABCD                                                 
           CURRENTSERVER                                                       
           CURRENTDATA   YES                                                   
           DEGREE        1                                                     
           SQLRULES      DB2                                                   
           DISCONNECT    EXPLICIT                                               
           NOREOPT       VARS                                                   
           KEEPDYNAMIC   NO                                                     
           IMMEDWRITE    NO                                                     
           DBPROTOCOL    DRDA                                                   
           OPTHINT                                                             
           ENCODING      EBCDIC(00037)                                         
           PATH                                                                 
DSNT200I  @  BIND FOR PLAN PROG  SUCCESSFUL                                 
DSN                                                                             
       END                                                                     
READY                                                                           
END   
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12382
Topics: 75
Location: San Jose

PostPosted: Wed May 31, 2006 5:18 am    Post subject: Reply with quote

mfuser,

You have the bind option EXPLAIN(YES) and you don't have the Plan table to put the results of the the explain. So change your bind your card to EXPLAIN(NO) or Create the plan table.

Check this link which explains the creation of plan_table

http://mvsforums.com/helpboards/viewtopic.php?t=587&highlight=plantable

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group