NetBase for MPE Reference Guide
Troubleshooting NetBase
B-9
MPE Builds, Purges and Renames
QUESTION:
How can I use NetBase to intercept MPE commands such as BUILD, PURGE, SAVE, COPY and
RENAME?
ANSWER:
You can invoke a UDC from a sample file provided by Quest Software. Essentially, each UDC runs
NMCMD.PUB.NETBASE which passes your request to HPCICOMMAND. From this point, NetBase can
intercept the command. We recommend the following sample UDCs:
build
anyparm parm1
xeq nmcmd.pub.netbase;info="build !parm1";parm=!HPMSGFENCE
if nmcmd = 1
escape !cierror
endif
***
purge
anyparm parm1
xeq nmcmd.pub.netbase;info="purge !parm1";parm=!HPMSGFENCE
if nmcmd = 1
escape !cierror
endif
***
rename
anyparm parm1
xeq nmcmd.pub.netbase;info="rename !parm1";parm=!HPMSGFENCE
if nmcmd = 1
escape !cierror
endif
***
save
anyparm parm1
xeq nmcmd.pub.netbase;info="save !parm1";parm=!HPMSGFENCE
if nmcmd = 1
escape !cierror
endif
***
copy
anyparm parm1
xeq nmcmd.pub.netbase;info="copy !parm1";parm=!HPMSGFENCE
if nmcmd = 1
escape !cierror
endif
***
Use the MPE SETCATALOG command to make these UDCs available (system-wide) by appending the
filename to the list of UDC files you use.