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

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

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.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: 2 &nbspReplies

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

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy