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

Precompilation when wrong column from DB2


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

New User


Joined: 10 Jun 2007
Posts: 36
Location: Chennai

PostPosted: Wed Jun 27, 2007 2:10 pm
Reply with quote

Hi,

What would happen during precompilation if one specifies wrong column name while using cusrsor in a COBOL-DB2 program ?


Regards,
anu
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: Wed Jun 27, 2007 2:16 pm
Reply with quote

Hello,

Did you test this condition on your system? If not, please do so and post back here if you have questions about what happens.

Is there a reason you feel that invalid column names would be handled differently if a cursor is in use?
Back to top
View user's profile Send private message
anu2
Warnings : 1

New User


Joined: 10 Jun 2007
Posts: 36
Location: Chennai

PostPosted: Mon Aug 20, 2007 12:24 pm
Reply with quote

Hi,

Thanks for the response.

I don't have access to Mainframes these days , so i can't check it.

Would be greatful if you can give me the answer.

Regards,
anu.
Back to top
View user's profile Send private message
noorkh

New User


Joined: 06 Mar 2006
Posts: 76
Location: Chennai

PostPosted: Mon Aug 20, 2007 7:35 pm
Reply with quote

Hi anu,

YOu will get compiler error and Sql code can be -204.
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 Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts How to load to DB2 with column level ... DB2 6
No new posts RC query -Time column CA Products 3
No new posts first column truncated in search result IBM Tools 13
No new posts Abend S0C4 11 (Page Translation Excep... PL/I & Assembler 16
Search our Forums:

Back to Top