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

when a null indicator variable will return a value = -3


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

New User


Joined: 18 Apr 2007
Posts: 7
Location: pune

PostPosted: Fri Apr 20, 2007 7:58 pm
Reply with quote

hi gurus,
i want to know when -3 is returned by null indicator variable
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 Apr 21, 2007 1:34 am
Reply with quote

Have you done even a rudimentary search?
Back to top
View user's profile Send private message
bhushan munot

New User


Joined: 18 Apr 2007
Posts: 7
Location: pune

PostPosted: Mon Apr 23, 2007 7:09 pm
Reply with quote

Phrzby Phil wrote:
Have you done even a rudimentary search?

no sir i don't know about rudimentry search.
can u pls give me details about what r the diff values that a null indicator variable will return
Back to top
View user's profile Send private message
ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Tue Apr 24, 2007 11:38 am
Reply with quote

Hi,

As per my knowledge null indicator has following values

0: Not Null
-1: Null
-2: Truncated (i never used it)

Other than these i never used.

Cheers
Ashwin
Back to top
View user's profile Send private message
bhushan munot

New User


Joined: 18 Apr 2007
Posts: 7
Location: pune

PostPosted: Tue Apr 24, 2007 5:43 pm
Reply with quote

hi ashwin,
thanks for ur reply. but i know all about these values and i want
to know when null indicator variable will return -3.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Apr 24, 2007 8:34 pm
Reply with quote

Hello,

Why do you think -3 is ever returned?
Back to top
View user's profile Send private message
Phrzby Phil

Senior Member


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

PostPosted: Tue Apr 24, 2007 8:58 pm
Reply with quote

I can't stand the suspense - here's the answer, fro the IBM website publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp

The purposes of the indicator variable are to:

1. Specify the null value. A negative value of the indicator variable specifies the null value. A -1 value indicates that the value that was selected |was the null value. A -2 value indicates that a numeric conversion or arithmetic expression error occurred in the SELECT list of an outer SELECT statement. A -3 value indicates that values were not returned for the row because a hole was detected on a multiple row FETCH. The value of -3 is used only for multiple-row FETCH statements; otherwise, the only indication of a hole is a warning.
2. Record the original length of a truncated string.
3. Indicate that a character could not be converted.
4. Record the seconds portion of a time if the time is truncated on assignment to a host variable.
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Null values are considered in Total c... DFSORT/ICETOOL 6
No new posts Variable Output file name DFSORT/ICETOOL 8
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top