comment ##############################################################
comment # Script Name: MPEX #
comment # This script will run Vesoft's MPEX. It detects if it is #
comment # already running MPEX and if not creates a temp redo file. #
comment ##############################################################
anyparm p1=$null
setjcw insidempex 0
if "!p1" <> "$null"
if !insidempex = 0
xeq main.pub.vesoft;parm=1;info="!p1"
else
%!p1
endif
else
if !insidempex = 0
continue
build mpexredo;disc=!hpredosize;temp >$null
file mpex.redo.vesoft=mpexredo,oldtemp;shr;temp
xeq main.pub.vesoft
reset mpex.redo.vesoft
else
return
endif
endif