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 

BIND PROBLEM FOR COBOL-DB2 PROGRAM

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


Joined: 12 Sep 2005
Posts: 1
Topics: 1

PostPosted: Mon Sep 12, 2005 9:58 am    Post subject: BIND PROBLEM FOR COBOL-DB2 PROGRAM Reply with quote

Hai,

I am trying to bind a new COBOL-DB2 program after successful compilation but i am not able to bind it as i am getting -204 error.Actually i am giving the program name as well as plan name also in the JCL correctly but i am getting finally as


BIND NOT SUCCESSFUL as well as the statement NO,SQLCODE & SQLSTATE with error values .

According to the manual of SQLCODES -204 says : -204 name IS AN UNQUALIFIED NAME.I am not able to figure out the actual meaning as does the plan name is invalid ? Can anyone help me out with my problem ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


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

PostPosted: Mon Sep 12, 2005 10:07 am    Post subject: Reply with quote

Quote:

as well as the statement NO,SQLCODE & SQLSTATE with error values .


hemavathi,

Look athe statement no: in the pre-compiled source listing and make sure that the table name is fully qualified and is referring to the right table.

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
haqshaik
Beginner


Joined: 11 May 2005
Posts: 49
Topics: 19

PostPosted: Wed Sep 14, 2005 10:39 am    Post subject: Reply with quote

Hi,
Can you check the Bind Parameters and the query. if you are referencing a table with out a qulifier, in the bind parameter you need to specify the qulifier. -204 says
in qw Explanation: The object identified by name is not defined in the DB2
subsystem. This SQLCODE can be generated for any type of DB2 object.

Hope this will help..

Reagrds,
Salauddin
Back to top
View user's profile Send private message
programmer1
Beginner


Joined: 18 Feb 2004
Posts: 138
Topics: 14

PostPosted: Fri Sep 16, 2005 1:50 am    Post subject: Reply with quote

It might be worth checking that the column names used in the cobol program exactly match with columns of the table defined.
_________________
Regards,
Programmer
Back to top
View user's profile Send private message
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