What version of MPEX are you on???
I tried your example and it worked ok.
FONTAIC <[log in to unmask]> on 07/22/98 08:20:23 PM
To: [log in to unmask]
cc: (bcc: Ron Horner/MIS/CorpCtrl/STO)
Subject: MPEX Echo'ing an Ampersand
Does anyone know how to echo an ampersand & to a file in MPEX? Here's the
rub,
when I do this:
%ECHO if (field1 !<= fielda and field2 !>= fielda) and & >> suprcom
%ECHO field3 = "yaddayaddayadda" >> suprcom
%ECHO ext this >>
suprcom
%ECHO ext that >>
suprcom
Note: the exclamation marks before the < and > in the first line are
intentional so MPEX doesn't interpret them as IO redirection.
MPEX thinks the ampersand is a continuation of the first command so I only
get
three lines of code in the file (and I get an MPEX error to boot!).
PRINT suprcom
if (field1 <= fielda and field2 >= fielda) and
ext this
ext that
Charlie Fontaine
NYLCare Health Plans