**************************************************************************
      * DBG044R3: Send Program Message (frontend to QMHSNDPM API)
      * Copyright (C) 2000  Martin Rowe   <martin@dbg400.net>
      *
      * This program is free software; you can redistribute it and/or modify
      * it under the terms of the GNU General Public License as published by
      * the Free Software Foundation; either version 2 of the License, or
      * (at your option) any later version.
      *
      * This program is distributed in the hope that it will be useful,
      * but WITHOUT ANY WARRANTY; without even the implied warranty of
      * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      * GNU General Public License for more details.
      *
      * You should have received a copy of the GNU General Public License
      * along with this program; if not, write to the Free Software Foundation,
      * Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
      **************************************************************************
     I            DS
     I                                    B   1   40#DLEN
      *
     I            DS
     I                                    B   1   40#PSTK
      *
     IMSGDTA      DS                            512
     I                                        1   1 #DUMMY
      *
     IERROR       DS
     I                                    B   1   40#BYTP
     I                                    B   5   80#BYTA
     I                                        9  15 #ERRID
     I                                       16  16 #ERROR
     I                                       17 256 #EXDTA
      **************************************************************************
     C           *ENTRY    PLIST
     C                     PARM           MSGID
     C                     PARM           MSGFIL 10
     C                     PARM           MSGLIB 10
     C                     PARM           MSGDTA
     C                     PARM           DTALEN  50
     C                     PARM           MSGTYP
     C                     PARM           PGMQ
     C                     PARM           PGMSTK  50
     C                     PARM           ERRCDE  7
      **************************************************************************
      *  INITIALISE
     C                     Z-ADDDTALEN    #DLEN
     C                     Z-ADDPGMSTK    #PSTK
     C                     Z-ADD256       #BYTP
     C                     Z-ADD0         #BYTA
     C                     MOVELMSGFIL    #MFLIB
     C                     MOVE MSGLIB    #MFLIB
      *  SEND MESSAGE
     C                     CALL 'QMHSNDPM'             90
     C                     PARM           MSGID   7
     C                     PARM           #MFLIB 20
     C                     PARM           MSGDTA
     C                     PARM           #DLEN
     C                     PARM           MSGTYP 10
     C                     PARM           PGMQ   10
     C                     PARM           #PSTK
     C                     PARM           MSGKEY  4
     C                     PARM           ERROR
      *  EXIT
     C                     MOVE #ERRID    ERRCDE
     C                     RETRN
      **************************************************************************


This topic: DBG400 > SourceCodeList > RpgSource > RpgDBG044R3
Topic revision: r2 - 01 Oct 2014 - 19:37:00 - UnknownUser
 
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding DBG/400? Send feedback