0 pts.
 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.

Software/Hardware used:
ASKED: July 2, 2005  8:17 AM
UPDATED: December 28, 2009  1:22 PM

Answer Wiki:
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. http://www-912.ibm.com/s_dir/slkbase.NSF/0/5657797868fd49cd86256e0c00724e7b?OpenDocument 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.
Last Wiki Answer Submitted:  July 3, 2005  2:01 am  by  Donjohn   10 pts.
All Answer Wiki Contributors:  Donjohn   10 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.

 

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 pts.