× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.


  • Subject: Re: MCH3601 errors
  • From: "Simon Coulter" <shc@xxxxxxxxxxxxxxxxx>
  • Date: Fri, 25 May 01 18:04:36 +1000

h
Hello David,

You wrote:
>I've got a particularly perplexing problem with a MCH3601 exception.
>I understand that this error is often caused by a missing, or incorrectly
>specified, parameter on a program call.  Unfortunately, I can't figure out
>where the parameter error is.  I've looked at everything near the failure
>point, both RPG and CL, and everything jives with the docs.

A pointer is NULL.  It might be a program parameter that was not passed to this 
program.  It could also be a basing pointer that is not set (or that gets set 
to 
NULL).  It can also be caused by initially defining a procedure (in a service 
program) to use VALUE and then changing the prototype to CONST, compile the 
program that invokes the procedure, but forgetting to rebuild the service 
program. (Ask me how I know :)

>Any suggestions on how to debug this?

I usually use debug to display the program parameters, any variables passed to 
another program or procedure, and any variables that seem likely candidates.

Display the message details and see what the sending and receiving procedures 
are.  Also the statement numbers in those procedures will help locate the area.

If that doesn't help then I write a sample program that does the minimum work 
and see if that works.  If it does then I add more of the original code until 
it 
breaks.

One other idea:  I have seen this error when calling a program that expected an 
EXPORTED variable to be available in an activation group but it wasn't 
available.  How can this happen?  The architected invocation is:
        PGMA (ACTGRP X) --> EXPORTS flag
                PGMB    (ACTGRP Y)
                        PGMC    (ACTGRP X) <-- IMPORTS flag

Now someone needs to call PGMC to do something and they try
        PGM1    (ACTGRP A)
                PGMC    (ACTGRP X)  == BOOM MCH3601

cause the imported flag variable ain't there.


Regards,
Simon Coulter.

«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
«» FlyByNight Software         AS/400 Technical Specialists       «»
«» Eclipse the competition - run your business on an IBM AS/400.  «»
«»                                                                «»
«» Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\   «»
«» Fax:   +61 3 9419 0175   mailto: shc@flybynight.com.au   \ /   «»
«»                                                           X    «»
«»               ASCII Ribbon campaign against HTML E-Mail  / \   «»
«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.