Unlock the Power of MEDITECH with MEDITECH KE

1

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

flag

1 Answer

0

My suggestion reminds me of the Princess Bride, you have to go back to the beginning.

[quote] “I am waiting for you, Vizzini. You told me to go back to the beginning. So I have. This is where I am, and this is where I’ll stay. I will not be moved.”

[suggestion] It sounds like your prefixes aren't open to the correct pointers. You might try hard-coding the pointer instead. The pointer might look something like this: 1N8234.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.