I have a variable in cobol program which is declared as S9(08) COMP-3. How will I declare the same type in CLP? I tried *DEC, *UINT and *INT but I cannot make it to work.
in the CLP, I am calling a program that should be passed like this.
CALL PGM(mypgm) PARM(‘someparm’ X’000000499F’)
if it is hardcoded, there is no problem. But when i substitute the X’000000499F’ into a variable, an error occurs.
Here’s what I tried:
dcl var(&jobnum) type(*dec) len(8)
dcl var(&jobnum) type(*int) len(8)
dcl var(&jobnum) type(*uint) len(8)
in the CLP, I am calling a program that should be passed like this.
CALL PGM(mypgm) PARM(‘someparm’ X’000000499F’)
if it is hardcoded, there is no problem. But when i substitute the X’000000499F’ into a variable, an error occurs.
Here’s what I tried:
dcl var(&jobnum) type(*dec) len(8)
dcl var(&jobnum) type(*int) len(8)
dcl var(&jobnum) type(*uint) len(8)
Comment