Žw’è’[––‚ŃvƒƒOƒ‰ƒ€‹N“®•û–@


ƒƒbƒZ[ƒWƒLƒ…[‚Ìì¬

CRTMSGQ  ƒ‰ƒCƒuƒ‰ƒŠ[–¼^ƒLƒ…[–¼
@@@ƒƒbƒZ[ƒWEƒLƒ…[‚ð’[––’PˆÊ‚É’è‹`‚µ‚ĉº‚³‚¢B

ƒƒbƒZ[ƒWƒtƒ@ƒCƒ‹‚ðŽg—p‚µ‚½ê‡

‘—M‚o‚f

PGM   PARM(&DEV)                                                 
             DCL        VAR(&DEV   ) TYPE(*CHAR) LEN(10)         
             DCL        VAR(&MSGKEY) TYPE(*CHAR) LEN(4)          
             DCL        VAR(&MSGQ  ) TYPE(*CHAR) LEN(10)         
             CHGVAR &MSGQ ('M' *TCAT %SST(&DEV 2 9))             
             SNDPGMMSG  MSGID(TST0000) MSGF(HRMLIB/TESTMSGF) +   
 
                          TOMSGQ(QGPL/&MSGQ) MSGTYPE(*INQ) +     
                          KEYVAR(&MSGKEY)                        
             RCVMSG     MSGTYPE(*RPY) MSGKEY(&MSGKEY) WAIT(120)  
ENDPGM                                                           

ŽóM‚o‚f

BRKPGM:     PGM (&MSGQ &MSGQLIB &MSGMRK)                                
              DCL &MSGQ TYPE(*CHAR) LEN(10)                             
              DCL &MSGQLIB TYPE(*CHAR) LEN(10)                          
              DCL &MSGMRK TYPE(*CHAR) LEN(4)                            
              DCL &MSGID TYPE(*CHAR) LEN(7)                             
              RCVMSG     MSGQ(&MSGQLIB/&MSGQ) MSGKEY(&MSGMRK) +          
                              MSGID(&MSGID)                       
              IF (&MSGID *EQ 'TST0000') +                               
                     DO                                                 
                     EDTCDE                                             
                     MONMSG CPF0000                                     
                     SNDRPY MSGKEY(&MSGMRK) MSGQ(&MSGQLIB/&MSGQ) RPY(I) 
                     MONMSG CPF0000                                     
                     ENDDO                                              
              /* OTHER MESSAGES REQUIRE USER INTERVENTION */            
              ELSE CMD(DSPMSG MSGQ(&MSGQLIB/&MSGQ))                     
  ENDBRKPGM:  ENDPGM                                                    

ƒƒbƒZ[ƒWŽg—p‚µ‚½ê‡

‘—M‚o‚f

PGM   PARM(&DEV)                                                 
             DCL        VAR(&DEV   ) TYPE(*CHAR) LEN(10)         
             DCL        VAR(&MSGKEY) TYPE(*CHAR) LEN(4)          
             DCL        VAR(&MSGQ  ) TYPE(*CHAR) LEN(10)         
             CHGVAR &MSGQ ('M' *TCAT %SST(&DEV 2 9))             
             SNDPGMMSG  MSG(f‚d‚c‚s‚b‚c‚df)  +   
                          TOMSGQ(QGPL/&MSGQ) MSGTYPE(*INQ) +     
 
                          KEYVAR(&MSGKEY)                        
             RCVMSG     MSGTYPE(*RPY) MSGKEY(&MSGKEY) WAIT(120)  
ENDPGM                                                           

ŽóM‚o‚f

BRKPGM:     PGM (&MSGQ &MSGQLIB &MSGMRK)                                
              DCL &MSGQ TYPE(*CHAR) LEN(10)                             
              DCL &MSGQLIB TYPE(*CHAR) LEN(10)                          
              DCL &MSGMRK TYPE(*CHAR) LEN(4)                            
              DCL &MSGID @@TYPE(*CHAR) LEN(7)                             
              DCL &MSG@@@ TYPE(*CHAR) LEN(6)                             
             RCVMSG     MSGQ(&MSGQLIB/&MSGQ) MSGKEY(&MSGMRK) +          
                              MSGID(&MSGID)   ‚l‚r‚fi•‚l‚r‚fj                    
              IF (&MSG *EQ 'EDTCDE') +                               
                     DO                                                 
                     EDTCDE                                             
                     MONMSG CPF0000                                     
                     SNDRPY MSGKEY(&MSGMRK) MSGQ(&MSGQLIB/&MSGQ) RPY(I) 
                     MONMSG CPF0000                                     
                     ENDDO                                              
              /* OTHER MESSAGES REQUIRE USER INTERVENTION */            
              ELSE CMD(DSPMSG MSGQ(&MSGQLIB/&MSGQ))                     
  ENDBRKPGM:  ENDPGM                                                    

‚g‚n‚l‚d@@@–ß‚é

@

@

@