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

value function


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

New User


Joined: 09 Jun 2005
Posts: 10

PostPosted: Wed Aug 10, 2005 9:18 am
Reply with quote

hi all,
in the VALUE function we can put multiple values which are to be substituted in case our first argument is a null. this is quite clear that, in case we have specified only one default value then that will be substituted at a null occurence. but what happens when multiple values are given there ? could somebody help ?
Back to top
View user's profile Send private message
Ravi Gopal

New User


Joined: 04 Aug 2005
Posts: 3

PostPosted: Thu Aug 18, 2005 3:02 pm
Reply with quote

Hi,

The VALUE function will substitute the first value that you are passing to the null column.
It wont give any error ,if you pass multiple values.But it ignores the second value.

SELECT CODE,VALUE(ST_DATE,'0001-01-01','0002-02-02')
FROM ABC.TRUST

This query ignores the second value '0002-02-02' while execting.



Regards
Ravi
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 Calling an Open C library function in... CICS 1
No new posts DATE2 function SYNCSORT 15
No new posts Help on PL/I jsonPutValue function PL/I & Assembler 8
No new posts how to use Tso outtrap external function All Other Mainframe Topics 8
No new posts INSYNC option with same function as I... JCL & VSAM 0
Search our Forums:

Back to Top