|
use %char(parm2) -----Original Message----- From: Douglas W. Palme [mailto:dpalme@xxxxxxxxxxx] Sent: Monday, July 18, 2005 9:19 AM To: RPG Group Subject: Error on compile I have written a program that will submit another rpgle sql program to batch mode.....however when I compile I am getting an error saying that the operands are not compatible with the type of operator.... Here is the relevant code: DPARM1 S 2A DPARM2 S D DATFMT(*USA) DPARM3 S D DATFMT(*USA) DCMD S 200A ********************************************************************** * MAINLINE ********************************************************************** C EXFMT MAIN C IF *IN12 = *ON C EVAL *INLR = *ON C RETURN C ELSE C MOVE DBRANCH PARM1 C MOVE DSTARTDATE PARM2 C MOVE DENDDATE PARM3 C EVAL CMD = 'SBMJOB CMD(CALL PGM(INVMARGIN) ' + C 'PARM("' + PARM1 + '" ' + C '"' + PARM2 + '" ' + C '"' + PARM3 + '"))' The errors refer to PARM2 and PARM3 specifically. Any suggestions would be appreciated. I have tried everything from the ampersand ( & ) to the plus I am now using and nothing seems to make a difference. If you bought, it was hauled by a truck - somewhere, sometime.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.