ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

MessageID CPA5305 needs auto reply 1000

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

  • MessageID CPA5305 needs auto reply 1000

    Im sorry if this is in the wrong area. Im new to the forums and unsure of where the best place should be.

    Can anyone provide some details into what this error means?

    MessageID CPA5305 needs auto reply 1000

  • #2
    I would never make an auto reply for CPA5305 -- completely defeats the purpose of having the CPA5305 in the first place!!

    This sounds like a kludge that someone added to some software somewhere. What software are you running when you get this?

    Comment


    • #3
      I agree with Scott - auto-replying to that could come back and bite you one day when something fills up your ASP and at worst brings your system down...
      Is the file created by the process or is it an existing file? If it's an existing file, have you considered increasing the member size?

      Comment


      • #4
        Originally posted by wakalaka View Post
        Can anyone provide some details into what this error means?

        MessageID CPA5305 needs auto reply 1000
        First, it doesn't seem to be an "error". If it looks like an error in a job, it seems like it would be a message that some program is sending. We can guess why such a message might be sent, but everything would only be guesses. You need to look at the program that sends the message to see why it's sent and what it means. It means whatever the programmer wanted it to mean, and we don't know what your programmers did.

        It seems to mean that your system should automatically approve another 1000 records be added to a file when the file fills up. That will happen when any file gets full in any job that allows "auto reply". You might think that you only have one job running on your system that has one file that might get full, but it can happen accidentally at any time. As long as that "auto reply" is active, some unexpected file may grow by 1000 records at a time until all space is gone.

        It's possible that an auto reply can be customized to allow only one specific file to grow that way, but it'd be far better to track down why this is even thought to be needed. It's better to do the programming right and let CPA5305 be a real error condition (or at least a condition that needs manual approval).
        Tom

        There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

        Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

        Comment


        • #5
          While I agree with Scott, there might be 2 ways you might be able handle this.
          1. At the start of the program, add the auto-reply entry (ADDRPYLE).
            You could remove it at the end of the run or, even better and if possible, after catching the message with a MONMSG (I am not sure if MONMSG will activate if there is an auto-reply for it).
            Either way, as Tom stated, you are at risk because other jobs could use the auto-reply while it is active.
          2. You catch the message and reply to it one or x number of times (depending what is deemed acceptable) before issuing an alert.

          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

          Working...
          X