If your example looks exactly like your CL code, then you've got too many +
signs. In source code, CL commands normally terminate at the end of a line. If your command continues onto another line you indicate this with a +
symbol. In this context it is not a meant as a concatenation operator (which would be ||
). Spaces suffice to separate the parameters.
You don't need the +
signs on the 4th line, which would be seen as arithmetic operators. This should solve your problem:
CALL PGM(QP2SHELL) +
PARM('/USR/LOCAL/ZENDSVR/BIN/PHP-CLI' +
'/www/zendsvr/htdocs/test/t1.php' +
'Hallo Test' 'P2' 'P3')
The keywords PGM and PARM are not required, so personally, I would write it like this:
CALL QP2SHELL ('/USR/LOCAL/ZENDSVR/BIN/PHP-CLI' +
'/www/zendsvr/htdocs/test/t1.php' +
'Hallo Test' +
'P2' +
'P3' +
)