Re: OBJECT PATCHING

Simon Coulter <shc-Q/[email protected]> Fri, 14 May 2010 21:00:37 +1000
Newsgroups gmane.comp.lang.as400.mi
Message-ID <[email protected]>
On 14/05/2010, at 7:05 PM, Roberto Garcia Perez1 wrote:

> I have a couple of problems when trying to patch some objects in the
> system. What I pretend is to replace the virtual address in one of the
> QINSEPT pointers and point to a new pgm that I've developped, and also
> patch this new program to change it to *SYSTEM state. The problems  =

> are:
> 1) My attempt to patch QINSEPT ends with a MCH6801.
> 2) My attempt to patch the program at location X'105C' to move it to a
> *SYSTEM state shows no error but the operation is not performed.

You should get MCH6801 on this too.

> All these steps are issued from a pgm in *SYSTEM state.

So you're trying to do this programmatically instead of via SST? In  =

that case the failure of both attempts is due to hardware storage  =

protection. The page protection for the SEPT space and the first page  =

of a program object is 3 which means read-only at all levels.

> IBM Global Services Espa=F1a, S.A.


Now that's amusing.

Regards,
Simon Coulter.
--------------------------------------------------------------------
    FlyByNight Software         OS/400, i5/OS Technical Specialists

    http://www.flybynight.com.au/
    Phone: +61 2 6657 8251   Mobile: +61 0411 091 400        /"\
    Fax:   +61 2 6657 8251                                   \ /
                                                              X
                  ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



_______________________________________________
This is the MI Programming on the AS400 / iSeries (MI400) mailing list
To post a message email: MI400-Zwy7GipZuJhWk0Htik3J/[email protected]
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/mi400
or email: MI400-request-Zwy7GipZuJhWk0Htik3J/[email protected]
Before posting, please take a moment to review the archives
at http://archive.midrange.com/mi400.