Hi,
I have 4 fields let's say fld1(2 char),fld2(4 char),fld3(3 char) fld4(8 char) and they are having their data types in CL program as Character with respective lengths as 2,4,3,8 but the moment they are passed from CL program to RPG program 2 of them get correct values (as they had been declared as static values in CL program) but remaining two fields are not getting proper values as passed from CL program.
for example if fld3 value from CL is passed as '300' then in RPG it's received as '?3?'
and for fld4 value from CL is passed as '18012021' then in RPG it's received as '1?8?0?1?'.
so any idea why is it happening so and what should be done to receive correct values in RPG program as well ?
Thanks..
I have 4 fields let's say fld1(2 char),fld2(4 char),fld3(3 char) fld4(8 char) and they are having their data types in CL program as Character with respective lengths as 2,4,3,8 but the moment they are passed from CL program to RPG program 2 of them get correct values (as they had been declared as static values in CL program) but remaining two fields are not getting proper values as passed from CL program.
for example if fld3 value from CL is passed as '300' then in RPG it's received as '?3?'
and for fld4 value from CL is passed as '18012021' then in RPG it's received as '1?8?0?1?'.
so any idea why is it happening so and what should be done to receive correct values in RPG program as well ?
Thanks..
Comment