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: 6966
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 Execessive parameter issue Sumeendar JCL & VSAM 5 Mon Dec 19, 2016 4:35 pm
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts DFHRESPONSE returns issue divated CICS 3 Wed Nov 02, 2016 6:32 pm
No new posts Can sending 5 MB data between cobol p... Kevin Vaz CICS 12 Tue Oct 18, 2016 4:50 pm


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