I'm trying to format a value with a Procedure. Final desired result would be:
INSTRING: '388447389 '
OUTSTRING: '0000000000388447389'
The Call:
EJMCC# = Proc01( Field : 'Desc' : 19 );
Header Info:
Code:
But, I get the message:
"Second parameter for %DEC or %DECH is not valid
What am I missing??
INSTRING: '388447389 '
OUTSTRING: '0000000000388447389'
The Call:
EJMCC# = Proc01( Field : 'Desc' : 19 );
Header Info:
Code:
p Proc01 b D Proc01 pi 500A D pVal Value Like( FIELDTEXT ) D pField 10A Value D pLen 2S 0 Value ...
Code:
@Val = %Dec( pVal : pLen : 0 ); ISDStrLen = pLen; ISDETEXT = %EditC( @Val : 'X' );
"Second parameter for %DEC or %DECH is not valid
What am I missing??
Comment