ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Reply list issue

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

  • Reply list issue

    Hey,

    If i run this program I get an automated reply.

    PHP Code:
                 PGM                                       
                                                           
                                                           
                 CHGJOB     INQMSGRPY
    (*SYSRPYL)       
                                                           
                 
    CALL       PGM(NOLIBRARY/NOPROGRAM)       
                                                           
                                                           
     
    ENDPGM:     ENDPGM 
    But my system rely list;
    PHP Code:
    Sequence  Message                                        
     Number   ID       Reply                             Dump
         1    CPA0702  R                                 
    *NO 
        10    CPA0700  D                                 
    *YES
        20    RPG0000  D                                 
    *YES
        30    CBE0000  D                                 
    *YES
        40    PLI0000  D                                 
    *YES
        60    CPA0702  R                                 
    *NO 
        80    CPA3394  G                                 
    *NO 
        81    CPA3394  G                                 
    *NO 
        82    CPA3394  G                                 
    *NO 
        83    CPA3394  G                                 
    *NO 
        84    CPA3394  G                                 
    *NO 
       86    CPA3394  G                                 
    *NO 
    Does not have the error ( CPA0701) in the list;

    PHP Code:
                                         Message . . . . :      600 CALL PGM(NOLIBRARY/NOPROGRAM
    CPA0701    Sender copy             99   05/28/08  09:27:47.973896  QCLXERR      QSYS        00DA
                                         Message 
    . . . . :   CPF0001 received by TEST00001 at 600. (
    *
    NONE      Reply                        05/28/08  09:27:48.065264  QMHSNINQ     QSYS        0D94
                                         Message 
    . . . . :   
    Any thoughts?
    Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

  • #2
    Re: Reply list issue

    Hi DMW:

    WrkMsgd cpf0001 qcpfmsg/display details/display message attributes. The second page has a default reply. (mine is *none)

    Also check CPA0701. Mine has a default reply of C

    Hope this hepls
    GLS
    The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

    Comment


    • #3
      Re: Reply list issue

      Question:
      1. what was the msg sent before this one in the joblog? (i think it might be CPA0702)
      Regards

      Kit
      http://www.ecofitonline.com
      DeskfIT - ChangefIT - XrefIT
      ___________________________________
      There are only 3 kinds of people -
      Those that can count and those that can't.

      Comment


      • #4
        Re: Reply list issue

        Thanks,

        1) there were no other messages before the CPA0701.
        2) the CPA0701 has a default of "C", but I don't think that is the issue.


        If i comment out the "CHGJOB INQMSGRPY(*SYSRPYL)" in the CL and run it, it sits there waiting for a responce;

        PHP Code:
        Job         User        Type     -----Status-----  Function       
        TEST00001   EK          BATCH    MSGW              PGM-TEST00001 
        PHP Code:
        CALL PGM(TEST00001)                                               
           
        600 CALL PGM(NOLIBRARY/NOPROGRAM)                            
        Library NOLIBRARY not found.                                      
        Error found on CALL command.                                      
        Function 
        checkCPF0001 unmonitored by TEST00001 at statement 600,
          
        instruction X'000B'.                                            
        CPF0001 received by TEST00001 at 600. (C D I R
        Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

        Comment


        • #5
          Re: Reply list issue

          Hey DMW:

          This is pure speculation but I don't have CPA0700 on my system. I know when you do a monmsg CPA0700 it will monitor for CPA0701 thru CPA0799.

          I'm not that familiar with reply entries but could it be doing the same type of range thing?

          GLS
          The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

          Comment


          • #6
            Re: Reply list issue

            Originally posted by GLS400 View Post
            I'm not that familiar with reply entries but could it be doing the same type of range thing?
            Looks like your correct based on the ADDRPYLE help screen:

            Message identifier (MSGID) - Help

            Specifies the inquiry message identifiers for which automatic system
            action is taken. The message identifier can be specific or generic
            in scope. Only predefined messages (messages known to the system by
            a message identifier) can be matched by reply list entries.
            Immediate messages cannot be used for comparison.

            *ANY
            This reply list entry matches any message identifier.

            message-identifier
            Specify a message identifier that is compared with the message
            identifier of an inquiry message. The message identifier must
            be 7 characters in length and in the following format: pppnnnn

            The first 3 characters (ppp) must be a code consisting of one
            alphabetic character followed by two alphanumeric (alphabetic or
            decimal) characters; the last 4 characters (nnnn) must consist
            of the decimal numbers 0 through 9 and the characters A through F.
            Terry

            Comment


            • #7
              Re: Reply list issue

              Thanks a ton.

              I removed the "10 CPA0700 " and life is good once again.
              Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

              Comment

              Working...
              X