×
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.
+1
Ashwani Singh
-----Original Message-----
From: RPG400-L <rpg400-l-bounces@xxxxxxxxxxxx> On Behalf Of Jon Paris
Sent: Wednesday, October 31, 2018 1:49 PM
To: Rpg400 Rpg400-L <rpg400-l@xxxxxxxxxxxx>
Subject: New RFE - Please vote
I was wrestling the other day with an XML-INTO problem that at root was caused by the fact that the character to numeric conversion BIFs (%Dec/$Float/%Int) treat a blank field as an error when it really should be treated as zero.
So - I've created an RFE to ask IBM to change this behaviour as it affects not just the BIFs but also XML-INTO and DATA-INTO and makes logic far more convoluted than it need to be.
Please vote for it!
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=126632 <
http://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=126632>
I have also toyed with the idea of asking for an additional parameter to be specified for these BIFs to set a default value to be used if an error is triggered.
e.g. value = %Dec( string: 7: 2: -1); // Default to -1 if string is not valid numeric.
Thoughts anyone?
Jon Paris
www.partner400.com
www.SystemiDeveloper.com
--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/rpg400-l.
Please contact support@xxxxxxxxxxxx for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
http://amzn.to/2dEadiD
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.