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 

Sqlcode +304

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


Joined: 07 Feb 2006
Posts: 26
Topics: 11

PostPosted: Thu Aug 03, 2006 8:09 pm    Post subject: Sqlcode +304 Reply with quote

HI ,

We are using Ims Dc front end with DB2 has back end . Our online screen abends when user makes some operation. When i analysed it comes out with Return code +304 . Could you please let me know how to overcome this error .
Code:

 DSNT404I SQLCODE = 304, WARNING:  A VALUE WITH DATA TYPE DECIMAL CANNOT
          BE ASSIGNED TO A HOST VARIABLE BECAUSE THE VALUE IS NOT WITHIN
          THE RANGE OF THE HOST VARIABLE IN POSITION 001 WITH DATA TYPE 
          DECIMAL                                                       


Thanks in advance .
Back to top
View user's profile Send private message
shekar123
Advanced


Joined: 22 Jul 2005
Posts: 528
Topics: 90
Location: Bangalore India

PostPosted: Thu Aug 03, 2006 8:27 pm    Post subject: Reply with quote

Mainhead,

Make use of the info and try to debug.Hope this helps.
Code:

+304

A VALUE WITH DATA TYPE data-type1 CANNOT BE ASSIGNED TO A HOST VARIABLE BECAUSE THE VALUE IS
NOT WITHIN THE RANGE OF THE HOST VARIABLE IN POSITION position-number WITH DATA TYPE data-type2

Explanation: A FETCH or SELECT into a host variable list or structure, position number position-number failed because the host variable having data type data-type2 was not large enough to hold the retrieved value having data type data-type1.

System Action: The FETCH or SELECT could not return the data for the indicated SELECT item, the indicator variable is set to negative two (-2) to indicate a null value returned. Processing continues.

Programmer Response: Verify that table definitions are current, and that the host variable has the proper data type. See the explanation for SQLCODE -405 for ranges of SQL data types.

SQLSTATE: 01515

-405

THE NUMERIC LITERAL literal CANNOT BE USED AS SPECIFIED BECAUSE IT IS OUT OF RANGE

Explanation: The specified numeric literal is not in the proper range.

The proper ranges for SQL values are as follows:
v 5.4E−79 to 7.2E+75 for FLOAT values
v −(1031 -1) to +(1031 -1) for DECIMAL values
v −2147483648 to 2147483647 for INTEGER values
v −32768 to +32767 for small integer (SMALLINT) values.

System Action: The statement cannot be executed.

Programmer Response: The value of the literal should be reduced to the appropriate size for this data type.

SQLSTATE: 42820

_________________
Shekar
Grow Technically
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: Thu Aug 03, 2006 8:49 pm    Post subject: Reply with quote

mainhead,

Check to see if there is mismatch of column attributes to host variables. Make sure the no: host variables are equal to the no: of columns you are selecting.

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


Joined: 07 Feb 2006
Posts: 26
Topics: 11

PostPosted: Sat Aug 05, 2006 9:25 pm    Post subject: Reply with quote

Thanks Kolusu i will try . But i believe the retrieved field not able to occupy the space of the Host field . I will Test and let you know on this .
Back to top
View user's profile Send private message
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