MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Column data displaying Value even though it is null.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
hitlerbros
Beginner


Joined: 29 Sep 2004
Posts: 3
Topics: 2

PostPosted: Wed Oct 06, 2004 12:38 am    Post subject: Column data displaying Value even though it is null. Reply with quote

I have inserted a row in a table with one field as null. But when I checked the table through FILE-AID/DB2 ,the null is showing a value 16448. But while retrieving field value is null itself. Please let me know how to show this blank while viewing through FILE-AID/DB2 .
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Oct 06, 2004 6:59 am    Post subject: Reply with quote

hitlerbros,

Did you try retrieving the same column in spufi and see if it returning the same result?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
hitlerbros
Beginner


Joined: 29 Sep 2004
Posts: 3
Topics: 2

PostPosted: Wed Oct 06, 2004 8:25 am    Post subject: Reply with quote

No, It is not whowing the value in SPUFI OUT. But the query I am having is there anyway I can show blank using FILE-AID/DB2.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Oct 06, 2004 8:53 am    Post subject: Reply with quote

hitlerbros,

You can try using a COALESCE or VALUE fucntions to put a space in the null column

Code:

SELECT COALESCE(COL1,' ')
  FROM TABLE
;


OR

Code:

SELECT VALUE(COL1,' ')
  FROM TABLE
;


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group