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

Low values & High values in DB2


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

New User


Joined: 13 Dec 2006
Posts: 73
Location: Hyderabad

PostPosted: Fri Jan 11, 2008 10:51 pm
Reply with quote

Hi..

I have small doubt here with Low & High values?
what will happen if i move low values to DB2 table column ?
1) what if it is default value defined as NOT NULL?
2) and as NULL ?

and what will happen for the same if we are moving High values and updating the table?


Thanks in advance.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Jan 11, 2008 10:57 pm
Reply with quote

avaneendra_linga wrote:
Hi..

I have small doubt here with Low & High values?
what will happen if i move low values to DB2 table column ?
1) what if it is default value defined as NOT NULL?
2) and as NULL ?

and what will happen for the same if we are moving High values and updating the table?


Thanks in advance.


Low & high values are just characters as far as DB2 is concerned. If a field is char and nullable you can put either low or high values into it. If a field is nullable and you set the null indicator to -1 then it does not matter what is in the data.
Back to top
View user's profile Send private message
avaneendra_linga

New User


Joined: 13 Dec 2006
Posts: 73
Location: Hyderabad

PostPosted: Sat Jan 12, 2008 12:44 am
Reply with quote

so what will be the output when i queried that column?
if i move low values to host variable and update DB2 column (whcih can be null) without setting null indicator to -1
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Sat Jan 12, 2008 12:47 am
Reply with quote

avaneendra_linga wrote:
so what will be the output when i queried that column?
if i move low values to host variable and update DB2 column (whcih can be null) without setting null indicator to -1


The output would be the same as what you stored in the column!
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


Joined: 31 Oct 2006
Posts: 1042
Location: Richmond, Virginia

PostPosted: Sat Jan 12, 2008 7:21 am
Reply with quote

Why not just try it already and let us know what did in fact happen? You must have a test table somewhere.
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 INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts ISRSUPC search utility - using high l... TSO/ISPF 2
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
Search our Forums:

Back to Top