I am trying to modify an intermediate CLLE program to submit itself to
batch. The calling program (ILE RPG) passes a parameter as a character field with a number in it. The CL program receives it as a numeric field and then calls another RPG program and passes that parameter. The final RPG program receives the parameter as a numeric field.
The first problem: I changed the CL program to submit itself to batch
and passed the incoming parameters to it. The final RPG program gave me
a decimal data error on that field. I changed the initial calling
program to pass the parameter as numeric instead of character and the
final RPG program gave me a decimal data error.
I have looked at the parameter in all three programs in debug; both of
the RPG programs show the correct number. The CL program shows the
value as you would expect: F0F0F5F8 rather than 0058249.
This is driving me crazy because I need to change it and can't without getting a decimal data error. Anybody got any ideas?
Software/Hardware used: AS/400, ILE RPG (non-free form), CLLE