Change Program's state to *SYSTEM premanently to survive a RSTOBJ

Matías Centeno Lozada <[email protected]>
Newsgroups gmane.comp.lang.as400.mi
Message-ID <006401c6343d$813a2a40$2fc77ec8@TPA21m2628D1X>
Hi everybody.
As we know, some programs (like UNDELCB & UNDELM from WRKDBF tool or CHGPWDTMC & RVSETUP from GOFASTER) had been 'patched' to be *SYSTEM state programs, but I don't know how the 'patch' was done to cheat RSTxxx commands and avoid that i5/OS change program state back to *USER.

I tested to 'patch' one of my MI programs, save it and then restore it, but the program state is changed back to *USER.
I tried saving the patched program with QSCMATPG and then restoring it with QSCCRTPG, but program's state is changed back to *USER too.

Anyone knows how to change program state permanently and avoid that i5/OS know that the program had been patched ?
May be exist some undocumented API or program in QSYS to do it.

Leif, I'm sure that you know the answer.

Regards, Matias.
_______________________________________________
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.