Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Problem during select

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Oct 10, 2007 5:18 pm    Post subject: Problem during select
Reply with quote

It looks quite simple but...?

A new column is added to the table using ALTER. When I query using select * I can see all the columns but when I specifically select the newly added column it's giving the error -206.

Any advice?

Cheers,
Back to top
View user's profile Send private message

nuthan

Active User


Joined: 26 Sep 2005
Posts: 146
Location: Bangalore

PostPosted: Wed Oct 10, 2007 5:24 pm    Post subject:
Reply with quote

Check the column name which you have mentioned in select.

SQLCODE -206 is Column does not exist in any table in the SELECT.
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Oct 10, 2007 5:26 pm    Post subject:
Reply with quote

Thanks nuthan for prompt reply....

I did check the column name couple of times..it's the same name iam giving in the select

cheers
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Wed Oct 10, 2007 5:28 pm    Post subject:
Reply with quote

Are you mentioning the table name which has the specified colomn name?
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1191
Location: Bangalore,India

PostPosted: Wed Oct 10, 2007 6:16 pm    Post subject:
Reply with quote

Hi There,

Can u please give us both the query as well as output.
Back to top
View user's profile Send private message
dick scherrer

Site Director


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

PostPosted: Wed Oct 10, 2007 6:18 pm    Post subject:
Reply with quote

Hello,

Where are you running this query (program, spufi, etc)?
Back to top
View user's profile Send private message
rajandhla

Active User


Joined: 18 Oct 2005
Posts: 182
Location: Luton UK

PostPosted: Wed Oct 10, 2007 7:07 pm    Post subject:
Reply with quote

Thanks guys for all of you...

The real problem is during altering the table new column name given/added as "ind_flag" and this became case sensitive .

It's works if i give in select as "ind_flag"....
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts CICS startup problem John Poulakos CICS 3 Tue Jun 12, 2018 9:08 pm
No new posts How to force a select query to abend neo4u DB2 7 Mon Apr 23, 2018 1:36 pm
No new posts SELECT TO MULIPLE OUTFIL speermb DFSORT/ICETOOL 5 Fri Mar 23, 2018 10:44 pm
No new posts How to select record x+7 or x+2 based... JoAnn Kulcyk SYNCSORT 6 Tue Jan 16, 2018 10:49 pm
No new posts Having a problem FTP'ng to the MF pahiker All Other Mainframe Topics 2 Fri Nov 10, 2017 8:20 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us