node-jt400 icon indicating copy to clipboard operation
node-jt400 copied to clipboard

Program Call with int params

Open woodinteractive opened this issue 1 year ago • 0 comments

We have written an PRG program that uses an int(10) param type. This expects a 4 byte binary of the number. Is there a way that I can pass values to it using this toolkit or would additional programming need to be included from the jt400 java toolkit to accommodate?

RPG dcl-pi

dcl-pi *n;
    pAction.          char(10); 
    pTollId             int(20);
    pTranId           int(20);
    pPltStAbbr     char(2);
    pPltTypeId      int(10);
    pPltNbr           char(10);
    pUserKey       int(10);
    pImages         char(1500);
    pMessage      char(50);
end-pi;

int(10) is a 4 byte binary int(20) is a 8 byte binary

woodinteractive avatar Apr 11 '23 16:04 woodinteractive