Thank you , Chris
I tested the sample, it works.
Then I compare the sample code with my own code. I correct my code as :
identification division.
program-id. DB2OUT.
environment division.
configuration section.
data division.
linkage section.
01 INPARAM PIC X(20).
01 OUTPARAM PIC X(80).
procedure division USING INPARAM,
OUTPARAM.
move spaces to OUTPARAM
string INPARAM delimited by spaces
' COBOL WORLD!!!' into OUTPARAM
goback.
end program DB2OUT.
The major update is, I use comma (,) between 2 parameters now.
If I define the stored procedure with IN and INOUT, I do not need to use comma in COBOL to separate the parameters
but if I define the stored procedure with IN and OUT. I do need to use comma in COBOL (very tricky here) to void the run-time error.
Now, I saw the result correctly: