Skip to main content

hi,

on netexpress 5.1 the function numval of a string don't give abend .

On mfe, instead, it give abend "181 invalid parameter error"

the source

NUMB PIC 9(18) comp.

WK-STR PIC X(50).

              MOVE "00000061G   " TO WK-STR
              COMPUTE NUMB = FUNCTION NUMVAL(WK-STR)

I add this compiler directive:

HOSTNUMMOVE
HOSTNUMCOMPARE
HOSTARITHMETIC
NOSIGNFIXUP
CHECKNUM

but I don't have the same behavior..

thank...


#181numval

hi,

on netexpress 5.1 the function numval of a string don't give abend .

On mfe, instead, it give abend "181 invalid parameter error"

the source

NUMB PIC 9(18) comp.

WK-STR PIC X(50).

              MOVE "00000061G   " TO WK-STR
              COMPUTE NUMB = FUNCTION NUMVAL(WK-STR)

I add this compiler directive:

HOSTNUMMOVE
HOSTNUMCOMPARE
HOSTARITHMETIC
NOSIGNFIXUP
CHECKNUM

but I don't have the same behavior..

thank...


#181numval

Hi,

The behavior of passing invalid characters to this function is undefined.

On Net Express the behavior is to strip out the alphabetic characters and return a numeric value which represents the numeric characters in the string.

I would recommend that you open up a support incident with Customer Care if you would like to see the MFE behavior and we can look into the possibility.

Thanks..