For testing an RPG program, I changed the CL program which submits the RPG program to a “call”. The change was to include a new parameter (numeric) to the RPG program. After testing, the Call was changed back to SBMJOB, but when tested again, the RPG program bombed with ‘decimal data error’. What could the be the probable reason for it.
Software/Hardware used:
ASKED:
December 12, 2008 6:35 PM
UPDATED:
December 15, 2008 6:20 PM
Doesn’t RPG expect any numeric parameter to be a 15.5 packed decimal? It seems like I have had success in the past by defining my numeric parameters as 15 P 5 on a D-spec.
hi Koohiisan
RPG doesn’t expect 15,5 the OS does. It takes the character string received from the SBMJOB command and converts it to a packed 15,5 when it sees a numeric string. If you code the RPG to match, then it will work to.