SYSOBJH delete instructions

Using SYSOBJH to unload, load and delete objects, I see no effect of the so-called delete instructions.

As an example, my unload command sequence looks like this:

UNDELI DEL1 LIB MYLIB OBJTYPE N SCKIND A
UNDELI DEL2 LIB MYLIB OBJTYPE N SCKIND A
UNLOAD SUB1 LIB MYLIB DBID 22 FNR 30 SCKIND A
UNLOAD NEW5-P LIB MYLIB DBID 22 FNR 30 SCKIND A
UNLOAD NEW6-P LIB MYLIB DBID 22 FNR 30 SCKIND A

and my load command like this:

LOADALL WITH LOADFUSERDBID 22 LOADFUSERFNR 40 WHERE REPLACE ALL DELETEALLOWED

I checked the unloaded file with the SCAN command and the delete instructions are contained.

The replacements are executed as expected, but the delete instructions are not.
Specifying DBID and FNR in the UNDELI commands does not help either (is not even allowed according to command syntax reference).

Has anyone experience with this technique? (NAT8.3.7 on Linux).

Many thanks!

Got it. As documented, the parameter DELETEALLOWED applies only to the LOAD command, not to LOADALL.

Thus

UNDELI DEL1 LIB MYLIB OBJTYPE N SCKIND A
UNDELI DEL2 LIB MYLIB OBJTYPE N SCKIND A
UNLOAD SUB1 LIB MYLIB DBID 22 FNR 30 SCKIND A
UNLOAD NEW5-P LIB MYLIB DBID 22 FNR 30 SCKIND A
UNLOAD NEW6-P LIB MYLIB DBID 22 FNR 30 SCKIND A

and

LOAD * LIB * WHERE REPLACE ALL DELETEALLOWED

does the trick.