Usermod ZMD0002, TK3 and TK4-

This usermod can be applied to TK4- update 08 and TK3.
It cannot be applied to later updates based on TK4- from other sources (such as Rob Prins updated version of 20220914) as they may (or do in the version Rob has updated) have had additional PTFs added that break the PRE/SUP chain needed for SMP for this usermod,
As a workaround for that I have created this job here to backout the two usermods Rob added in his 20220914 release; allowing my usermod to work correctly when installed.
The two usermods are TMVS16 (which affected IEE3503D) and TMVS17 which must be removed to remove TMVS16. I can find no information on what these are.

So why this usermod then

OS/VS2 does not support MPF, which is the modern way to define additional commands.

My solution for additional display commands is to create a usermod to update IEE3503D. Immediately prior to where it would write the 'invalid command' message in response to a display command mvs3.8j it now attempts to locate program MID3503D to see if unknown commands are handled there, the program will return with either command handled or to just follow normal unknown commoand logic in IEE3503D.

The benefits of this method are

My usermod is cleaner than trying to stuff additional code into IEE3503D, it just modifies IEE3503D to link to an external module MID3503D to try to resolve extra commands rather than polluting the IBM supplied code with attempts to handle any additional commands.
And if you really screw up simply deleting or replacing MID3503D fixes it, no usermods to backout if you create a bad command.

Files

Example MID3503D program

This is an example working implementation of MID3503D. The symbol table in this program is pretty full, adding new functions will probably require emoving some of the example ones.
It provides

Credits for the example MID3503D program above

Code has been examined, extracted and tweaked from the below resources.