On Apr 18, 6:27pm, James Wilkinson wrote:
> Subject: Re: MPEX and %comments
> [log in to unmask] wrote:
...
> > !RUN MPEX.PUB.VESOFT;PARM=1
> > %comment !8
...
> In fact if you look at some of Vesoft's own command files you will see
> them use a comment followed by the MPE function to actually execute a
> command. i.e. %COMMENT ![mpe('purge @')] (The syntax is a guess). I
> believe that doing this avoids setting some JCWs or surpresses some
> errors. Still don't know why !8 gives you the error it does, though.
!8 causes command number 8 to be retrieved from the CI's redo stack and
substituted into the command line. This always happens -- even if !8 is
preceeded by COMMENT. The CI performs "string substitution" before knowing
what the command name is.
I can't figure out why you get a divide by zero error! Maybe knowing
what command 8 is will help? (If command 8 does not exist in the redo
stack you should just get this warning:
"Invalid numeric index into the redo stack. (CIWARN 8164)"
regards,
Jeff Vance, CSY
--