At last week's RPG World conference, it was stressed that when writing an embedded-SQL statement to retrieve fields from a file, that naming the individual fields in the SELECT statement was preferable to using '*' to get all fields. I am attempting to pull three fields from a file, but a time field which I am not using contains an invalid value resulting in "SQLSTT 22003 Numeric Value Out Of Range".
Here is the code:
Select BHBSS, BHBHST, BHBTDT From SLBHREP Where BHBHST = ? And BHBTDT >= ?
Order By BHBTDT Desc For Read Only
The field it is choking on is a time field... BHBTIM. BHBTIM = 040404.
If I am not naming the time field, how is it causing the error? What can I do to prevent it?
Thanks,
Robert Munday
Munday Software Consultants
Montgomery, AL
on assignment in Columbia, SC
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.