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
 
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: 6970
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 SELECT TO MULIPLE OUTFIL speermb DFSORT/ICETOOL 5 Fri Mar 23, 2018 10:44 pm
No new posts CICS-MQ connection setup issue kaushikv CICS 3 Wed Mar 21, 2018 8:10 pm
No new posts Need Help!!CEE library issue while br... kaushikv CICS 9 Fri Mar 09, 2018 6:06 pm
No new posts Tape file issue abdulrafi JCL & VSAM 2 Thu Feb 08, 2018 12:01 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

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