Hi all,
I have a program with two parameters. The parameters are declared numeric inside the rpg program. I have compiled with no errors but when i call the program interactively in the command line, i get a decimal data error. I tried to debug the program and have found out that only the first variable has the correct value, the second variable have a zero value in it:
Call mypgm parm(12345 100)
I resort to declaring the variables in rpg as character and passing character value and then move the values to a numeric. Is this the only way to resolve this or do you have any better way? thanks.
I have a program with two parameters. The parameters are declared numeric inside the rpg program. I have compiled with no errors but when i call the program interactively in the command line, i get a decimal data error. I tried to debug the program and have found out that only the first variable has the correct value, the second variable have a zero value in it:
Call mypgm parm(12345 100)
I resort to declaring the variables in rpg as character and passing character value and then move the values to a numeric. Is this the only way to resolve this or do you have any better way? thanks.









Uh oh -- I've got zoned all over the place when going from RPG to RPG. Primarily in service pgms where the prototypes are defined with the Const keyword. The return variables are also zoned.
Comment