#!/bin/ksh
#PARMPROC is set by EXEC PROC statement with PARM=value, for the first
#procedure step : it will override the eventual PARM parameter in the its
#EXEC PGM statement
#
#p$STEPNAME is set by EXEC PROC statement with PARM.STEP=value : it will
#override the eventual PARM parameter specified in the procedure step named STEP
#
#PARM is set by EXEC PGM statement with PARM=value
#
ooo_PROCSTEP='$p'${STEPNAME}
ooo_PROC=`eval echo $ooo_PROCSTEP`
if [ "$ooo_PROC" != "" ]
then
	ooo_STEPPARM=$ooo_PROC
fi
echo ${PARMPROC-${ooo_STEPPARM-${PARM-""}}}
exit 0
