× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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 thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.