× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



My first guess would be a missing comma.

When reading from embedded SQL, the host variables are separated by commas. You have the option of including a null flag for each Db2 column. You do that by adding a second host variable after the variable for the column you want to check. The second variable is added without the comma. So if you forget a comma, the precompiler assumes you're specifying a null flag.

HTH



-----Original Message-----
From: Booth Martin [mailto:booth@xxxxxxxxxxxx]
Sent: Thursday, December 20, 2018 12:19 PM
To: RPG programming on the IBM i / System i <rpg400-l@xxxxxxxxxxxx>
Subject: SQL0080: Position 44 Indicator variable WDATE not SMALLINT type.

I have an SQLRPGLE program selecting a 9/0 field, used for dates, into wDate which is a 10/0 field.  There is nothing that I can see that is smallint about it.

The immediately adjacent field is a 7/0 field used for time, into wTime which is a 7/0 field and works fine.

What am I not seeing?



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.