Hi,
Can you please help me to understand why it happens :
The RPG program, lets say PGMA, works in batch and calls a CL program, say PGMC .
One of parameters in both programs defined as character 10.
PGMA sends a 10 length parameter which looks like 'AAAAAAAA ' ( 8 A's , 2 blanks ),
but PGMC receives it like 'AAAAAAAA' , 8 A's without 2 blanks .
(It later causes problems in the memory (pointers) in UPDHTMLVAR function and the resulting XML file goes wrong ) .
My question is why is CL program PGMC cuts 2 blanks of the parameter ?
Thanks.
Can you please help me to understand why it happens :
The RPG program, lets say PGMA, works in batch and calls a CL program, say PGMC .
One of parameters in both programs defined as character 10.
PGMA sends a 10 length parameter which looks like 'AAAAAAAA ' ( 8 A's , 2 blanks ),
but PGMC receives it like 'AAAAAAAA' , 8 A's without 2 blanks .
(It later causes problems in the memory (pointers) in UPDHTMLVAR function and the resulting XML file goes wrong ) .
My question is why is CL program PGMC cuts 2 blanks of the parameter ?
Thanks.
Comment