ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Message Subfile in CL/CLLE ?

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

  • Message Subfile in CL/CLLE ?

    Hi,

    Can we use Message Subfile in Cl pgm ???

    if we can ,can some body pls give an example ??

    Thanks.
    Prashant.

  • #2
    Re: Message Subfile in CL/CLLE ?

    you can use message subfile only.......not a screen and a subfile.
    there is only sndrcv unlike write and exfmt in RPG.

    if you want to use it alone use the api's that are all over the forum and on the index page.

    PHP Code:
    ~
     *=================================================   
     *    
    $SndMsg Send a message to the msg subfile     
     
    *=================================================   
    c     $SndMsg       begsr                             
     
    *                                                    
    c                   call      'QMHSNDPM'              
    c                   parm                    MSGID     
    c                   parm                    MSGF      
    c                   parm                    MSGDTA    
    c                   parm                    DTALEN    
    c                   parm                    MSGTYP    
    c                   parm                    PGMQ      
    c                   parm                    STKCNT    
    c                   parm                    MSGKEY    
    c                   parm                    ERRCOD    
     
    *                                                    
    c                   endsr 
    PHP Code:
    ~
     *================================================= 
     *    
    $ClrMsg Clear the msg from the screen       
     
    *================================================= 
    c     $ClrMsg       begsr                           
     
    *                                                  
    c                   call      'QMHRMVPM'            
    c                   parm                    PGMQ    
    c                   parm                    STKCNT  
    c                   parm                    MSGKY   
    c                   parm                    MSGRMV  
    c                   parm                    ERRCOD  
     
    *                                                  
    c                   endsr 
    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: Message Subfile in CL/CLLE ?

      Thank u very much

      Comment

      Working...
      X