|
I have this rpg code, and i'm calling a CL, but the CL is giving a decimal data error and i was wondering, what I might need to fix..
PO number 20 char and tpkey is 5,0
tpkey = -11 (negative)
c eval errmsg = 'No Errors for '+ c %trim(ponumber) c call 'SBMEDI' c parm ponumber c parm tpkey c eval *inlr = *on
CL looks like this..
PGM PARM(&PONBR &TPKEY)
DCL VAR(&PONBR) TYPE(*CHAR) LEN(20) DCL VAR(&TPKEY) TYPE(*DEC) LEN(5 0)
IF COND(&tpkey *EQ -11) THEN(DO)
.... ... it fails on the if. any ideas?
Pete Hall pbhall@xxxxxxxxxxxxx http://www.pbhall.us/
As an Amazon Associate we earn from qualifying purchases.
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.