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



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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.