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
 

 

value function

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: value function
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    Post subject: Re: value function
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    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
This topic is locked: you cannot edit posts or make replies. RANDOM Function in COBOL swapnil781 COBOL Programming 2 Tue Nov 15, 2016 6:17 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Strange EXEC function call in z/VM Willy Jensen CLIST & REXX 3 Wed Oct 05, 2016 2:07 pm
No new posts Replace function abdulrafi COBOL Programming 13 Mon Sep 12, 2016 10:12 am
No new posts Which function does the Ampersand (&a... Andi1982 PL/I & Assembler 3 Wed Aug 24, 2016 2:05 pm


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