IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Issue with Bind Sqlcode= -206


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Wed Aug 11, 2010 11:59 am
Reply with quote

Hi,

I am getting sqlocde = -206 for the column name MI_FUTURE_INFO in the select query.

Query:

Code:
  ,MI_RT_CLSF_IN   
         ,MI_FUTURE_INFO   
   INTO  :MI-BATCH-DATE   
        ,:MI-TA-NBR 



Error Message:

Code:
DSNX200I  -DBT3 BIND SQL ERROR       
           USING D2DAP001 AUTHORITY 
           PLAN=(NOT APPLICABLE)     
           DBRM=TATAJ120             
           STATEMENT=2747           
           SQLCODE=-206             
           SQLSTATE=42703           
           TOKENS=MI_FUTURE_INFO     
           CSECT NAME=DSNXORSO       
           RDS CODE=-100             
DSNT233I  -DBT3 UNSUCCESSFUL BIND FOR


I have searched for the cause and i got this describtion.

Cause
This indicates a problem with the delimiters within SQL statements defined -- the delimiter for a character string literal versus the escape character used to delimit a column name.

I did't get exactly what is causing the problem. Anybody has any idea?


Thanks,
Amsar
Back to top
View user's profile Send private message
aishvarya_82

New User


Joined: 11 Nov 2008
Posts: 11
Location: Pune

PostPosted: Wed Aug 11, 2010 12:13 pm
Reply with quote

Hi,

I think the problem is with the column MI_FUTURE_INFO.Check the column name again.


Thanks,
Aishvarya
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Wed Aug 11, 2010 2:11 pm
Reply with quote

I think we need to see more of your query. From what I can tell from the part you provided the column names in the select does not match to the host variables in the INTO clause.

Doublecheck the column name against the physical table columns.
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Wed Aug 11, 2010 11:31 pm
Reply with quote

kjeld & Aishvarya,

Thanks for your time and for your suggestion. icon_smile.gif

I have got the issue, the issue was with the devlopment table, i was assumed that table stucture in prod and devlop is same.

but later i came to know this is the additional column which got added in prod and is not there in devlop and for testing purpose i have copied the prod code so for this new column name i was getting the sqlcode= -206 while bind.

Thanks,
Amsar
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Aug 11, 2010 11:37 pm
Reply with quote

Amsar wrote:
but later i came to know this is the additional column which got added in prod and is not there in devlop and for testing purpose i have copied the prod code so for this new column name i was getting the sqlcode= -206 while bind.


so what are you going to do?

remove the column from your sql,
or attempt to have the development tables mirror production?
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Aug 11, 2010 11:46 pm
Reply with quote

Amsar wrote:
kjeld & Aishvarya,
but later i came to know this is the additional column which got added in prod and is not there in devlop and for testing purpose i have copied the prod code so for this new column name i was getting the sqlcode= -206 while bind.


That strange, changes are usually made it develop before being made in prod.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 12, 2010 12:00 am
Reply with quote

Craq, some people like to live dangerously! icon_biggrin.gif
Back to top
View user's profile Send private message
Amsar

New User


Joined: 26 Sep 2008
Posts: 84
Location: Chennai

PostPosted: Thu Aug 12, 2010 12:05 am
Reply with quote

Hi Craq,

Same thing surpised me also and that what was my assumption.

But it was emergancy change which was moved from qual region.


Hi Dick,

I am going to remove the column from my sql as i don't need that.


Thanks,
Amsar
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 12, 2010 2:07 am
Reply with quote

Amsar wrote:
Hi Dick,

I am going to remove the column from my sql as i don't need that.


Amsar,

that is what all of us were afraid you would say!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 12, 2010 3:50 am
Reply with quote

Hello,

Quote:
But it was emergancy change which was moved from qual region.
I know i probably shouldn't ask, but how did the database change(s) get into "qual" before "devlop". . .?

I've not seen "emergency repair" done in a "qual" environment before. . . Developers cannot usually "work" in "qual" and if there is new database definition going on, there will be new data going on and this all needs to be tested before promotion (qual or prod).
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 12, 2010 3:02 pm
Reply with quote

Dick,

I have seen situations where develop (UNIT) was so far out of sync with production (on going enhancements)
that the only way to repair prod was from qual.

it is expected that qual after being migrated to prod to fix the problem,
would be retrofitted in develop (UNIT).

now the question here is why don't they do that at the shop where the TS performs his magic?
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Thu Aug 12, 2010 5:28 pm
Reply with quote

At my site we have multiple parallel development and test environments.

Each project or maintenance area have the resposibility to maintain databases and data for their application area in the environments they will use, which means that some databases might be left behind in a backlevel state, ie. if changes has been promoted through other environments after a project has been closed.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts Issue after ISPF copy to Linklist Lib... TSO/ISPF 1
No new posts Facing ABM3 issue! CICS 3
No new posts Panvalet - 9 Character name - Issue c... CA Products 6
No new posts Issue with EXEC CICS QUERY SECURITY c... CICS 6
Search our Forums:

Back to Top