RPGLE CL Command to call aprogram with numeric parameter
PGM : TESTHEX H DftActGrp(*NO) Option(*SRCSTMT) D charval S 26a inz('123.00') DRunCommand PR ExtPgm('QCMDEXC') DpCommand 2560 const DPCmdLen 15 5 const DpCommand S 2560 DPCmdLen S 15 5 inz(2560) /Free Charval = %replace('':Charval:%Scan('.':CharVal):1); // to remove '.' If %Rem(%len(%trim(Charval)):2) = 1; //length of numeric value must be odd //So When F is added at end it always even Charval = 'X' + '''' + %Trim(Ch