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



how did you pass the parm to test your program ?
if is from the command entry display... are you enclosing the number in
quotes and formatted with leading zeroes ?




From: Michael Schutte <mschutte369@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
Date: 09/03/2016 15:55
Subject: Re: convert of character passed param to numeric
Sent by: "MIDRANGE-L" <midrange-l-bounces@xxxxxxxxxxxx>



what is the value of pono in debug. This will likely lead you to as why.

On Wed, Mar 9, 2016 at 9:50 AM, Bradley Stone <bvstone@xxxxxxxxx> wrote:

You'll want to always use a MONITOR block around the %dec BIF to trap
these
errors.

http://www.itjungle.com/fhg/fhg052009-story02.html

http://enskill.com/faqs/using-dec-to-convert-character-to-numeric/

Brad
www.bvstools.com

On Wed, Mar 9, 2016 at 8:46 AM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:

I am passing a numeric order num as a char
c *entry plist
c parm pono 12

I then convert here
c eval ponum = %Dec(pono:12:0)

statement 000413 performed a conversion from character to numeric
using
data
that was in error.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.