I have a CL pgm calling an RPGLE pgm that expects two variables.
CALL PGM(SFTP2UPS) PARM(&IFSDIR &IFSFIL)
The two variables created in the CL are defined as *char and len=40
which is the same as in the RPGLE pgm.
I know this works as the CL dump shows the variables at len 40 padded
with blanks on the right.
&IFSDIR *CHAR 40
+26 'Ticket/ '
&IFSFIL *CHAR 40
+26 'T00 '
When I run the pgm from the command line with variables padded with
blanks the pgm works fine.
CALL PGM(SFTP2UPS) PARM('TEST1 '
When I run the pgm from my CL it fails.
Parameters passed on CALL do not match those required.
Error found on CALL command.
CPF0001 received by SFTP2UPS at 5500. (C D I R)
Function check. CPF0001 unmonitored by SFTP2UPS at statement 5500,