MCH3601 in called program aicapgm

Hi I am facing MCH3601 error i.e. (MCH3601 in called program aicapgm which may be system program since its object doesnot exist)i.e. POINTER NOT SET FOR LOCATION REFERENCE problem. This problem is coming while calling COBOL programs e.g. C from two COBOL programs A and B. When C is called from program A (type COBOL),program C works fine WITHOUT ANY PROBLEM but when C is called thru program B which is ILE Cobol program.. I get this error. I checked parameter length they are same and even corresponding files are closed during program calls. Also i have compiled ILE program within same activation group as of calling program thru *caller.. but still same problem is coming again and again. Can anybody suggest a solution to this problem.

Answer Wiki

Thanks. We'll let you know when a new response is added.

The same thing always happens to me. I could never why a certain program runs perfectly in one as400 and when recompile it in another as400 it starts sending me the same message. This happened to me twice before.

1st time was when I had one RPG pgm that had a DO loop while reading a file, each record read will then call an API one time, then on the second pass when I try to call it again, it shows this error. What I did was to discard the old pgm and rewrite a new one…the new one is working perfectly (which still does not explain why i got the error in the first place…) The OS is v5r1

2nd time was when there was a simple pgm that wrote to a log file, then called another API…it would work fine for the first pass then drop out of the session because the message queue is full. I checked the message queue and it was full of this message “Pointer not set for location referenced”.

Please check this link to see the IBM software technical document.

It says here that:
“Document Title
MCH3601 – Pointer not set for location referenced

Document Description
Message MCH3601 is received when issuing command PMLINMON without specifying the library. To resolve the problem, use the QMPGLIB/PMLINMON command. ”

I am sure that the actual explanation is not as simple as this. If i can fix my problem tomorrow. I will tell you what actually happened. I think the first address pointer gets corrupted and the pgm cannot rebuild it. I am not an expert so this is my best guess.

Discuss This Question: 2  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Hypidia
    Hi, I had the same situation too. It was a problem with the libary list or the object rights, so that the cobol prgram had no access to the file. So produce a dump and have a look to the file status.
    0 pointsBadges:
  • Tapanknaik
    Thi shappens when you call an OPM from ILE. I am not sure about the reason, but if you willuse GOBAcK, it will work file.
    25 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: