Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Issue with Select Statement

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

New User


Joined: 27 Feb 2006
Posts: 16
Location: India

PostPosted: Thu May 28, 2009 2:36 pm    Post subject: Issue with Select Statement
Reply with quote

Hi

I am having two tables A and B.Column1 of both the tables are same valuse but in table A it is declared as Integer and NOT NULL.But in table B it is Integer. Now as per the optimized query I want to use the value from column B. But due to this selection, I am getting the output record length as 28. Previously it was 29. Beacuse of this mismatch, all other steps are failing. Is there any way to add one more byte in the select statement?
Back to top
View user's profile Send private message

ashimer

Active Member


Joined: 13 Feb 2004
Posts: 551
Location: Bangalore

PostPosted: Thu May 28, 2009 2:55 pm    Post subject:
Reply with quote

What do you mean by record length mismatch ? the Column definition is the same ..
Post your query
Back to top
View user's profile Send private message
harinair_kn
Warnings : 2

New User


Joined: 27 Feb 2006
Posts: 16
Location: India

PostPosted: Thu May 28, 2009 2:57 pm    Post subject:
Reply with quote

Its because of the Null Indicator
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Thu May 28, 2009 3:04 pm    Post subject:
Reply with quote

Ashimer,

He is probably dumping and the extra char was the NULL Indicator.
but it seems his explanation is a little screwy,

but then again, I got up early today and am not fully prepared for Psychic Thursday
Back to top
View user's profile Send private message
ashishsr123

New User


Joined: 06 May 2008
Posts: 33
Location: Chennai

PostPosted: Sat May 30, 2009 1:58 am    Post subject: Reply to: Issue with Select Statement
Reply with quote

If you post your SQL query then we can help you better.
Not completely sure what your are talking.
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 ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us