Hi, I have a macro that when I run it from a report it works fine, but when I try to use it as a service (from external ops) the only output is the static text. The only thing in the report is the footnote:
AL CLOSE.UP daemon
Here is the macro:
C(&)^SAVE,
%Z.link("&","BAR","%.BAR.data","BAR.HER"),
@Chg.prefix(BAR.PAT,?,&),
@Chg.prefix(BAR.PAT,:,&),
"H10000001216"^BAR.PAT.number,
@Next(BAR.PAT.account,@BAR.PAT.number.x),
@BAR.PAT.balance^BAL,
@BAR.PAT.number^ACCT,
ZZ%OP(&,SAVE),
"BAL: "_BAL^!,
N("")^!,
"ACT: "_ACCT^!,
NNN("")^!
I have the service setup on the segment that contains BAR, and I added the ; to the end of the macro when run as a service .
This is only a starting point for the end result.
The output as a report is:
BAL: 68625.06
ACT: H10000001216
The output as a service is:
BAL:
ACT:
Thanks for any feedback.
Dave


