× 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.



Yeah, I missed that too. I'm easily sidetracked these days :)

On 6/2/2020 9:20 AM, Jon Paris wrote:
No - you're right.

For reasons I won't get into my brain is not functioning correctly right now.

But that was not the cause of the issue as it turns out. The OP was passing the value on a job submit so it was coming in as 15,5 packed. And there was no code in place to convert it to an int.



On Jun 2, 2020, at 11:23 AM, Peter Dow <petercdow@xxxxxxxxx> wrote:

Are you sure? From https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_72/rzajp/rzajpequivsqlirpg.htm

RPG data type RPG coding SQLTYPE of host variable SQLLEN of host variable SQL data type


8-byte integer *Free-form:*

* INT(20)

*Fixed-form:*

* Defined on Definition specification as subfield with from and to
positions and data type I and byte length 8.
* Defined on Definition specification with data type I and digits 20.
* Defined on Input specification with data type I and byte length 8.

492 8 BIGINT



On 6/2/2020 5:40 AM, Jon Paris wrote:
Well an INT with a length of 8 should be an Int(10) not 20. So that looks like a pre-processor bug to me.


--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link: https://amazon.midrange.com


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.