ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Call stack entry problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Call stack entry problem

    Hi,
    I am calling a CLLE module from a ILE pgm using CALL to send messages to message subfile IN the PROCEDURES defined in the ILE PGM viz, ADD, UPDATE ETC using CALLP.
    But i am getting error message as " Call stack entry is not valid".
    In the CLLE module i have coded Relatonship as *same and Call Stack entry as *PGMQ. IS this correct ?
    Hence i am not able to display message .
    Plz help me to resolve this ASAP.

    Vinod, Mumbai

  • #2
    Re: Call stack entry problem

    Your CLLE program still requires the incoming parms
    PGM PARM(&INMSGTYPE &INMSG &INMSGDTA)

    they must be defined and the same list of parms MUST be sent from the calling RPG program.


    jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Call stack entry problem

      Hi,
      I have passed the parms as
      PHP Code:
                                                                        MSGSN
       
      *************** Beginning of data ************************************
        
      BEGIN:      PGM        PARM(&PGMNM &MSGID &MSGF &MSGFD)              
                    
      DCL        VAR(&PGMNMTYPE(*CHARLEN(10)               
                    
      DCL        VAR(&MSGIDTYPE(*CHARLEN(7)                
                    
      DCL        VAR(&MSGFTYPE(*CHARLEN(10)                
                    
      DCL        VAR(&MSGFDTYPE(*DECLEN(6 0)               
                    
      DCL        VAR(&FLDTYPE(*CHARLEN(6)                  
                    
      CHGVAR     VAR(&FLDVALUE('%CHAR(&MSGFD)')              
                    
      SNDPGMMSG  MSGID(&MSGIDMSGF(TRNLIB/&MSGF) +            
                                 
      MSGDTA(&FLDTOPGMQ(*SAME (*PGMQ))          
        
      ENDPGM:     ENDPGM                                                   
       
      ****************** End of data *************************************** 

      Awaiting ur reply ASAP.

      Vinod

      Comment


      • #4
        Re: Call stack entry problem

        Can you use RPG instead of this CL withing the program(s) or create a module?
        All my answers were extracted from the "Big Dummy's Guide to the As400"
        and I take no responsibility for any of them.

        www.code400.com

        Comment

        Working...
        X