June 27, 2022

Pgm.name returns the name of the current MEDITECH NPR Procedure

@Pgm.name is an NPR Programming Macro that can come in handy, especially when using the Debug programs in an NPR Report Macro. 

@Pgm.name("") will return the name of the current NPR Report Macro.  For instance, assuming your NPR Report is called 'MIS.USER.zcus.report' and your NPR Report Macro is called 'detail', then @Pgm.name("") will return "MIS.USER.zcus.report.M.detail".

This can come in handy when using Meditech's standard Debug programs.

MAGIC customers can use the following line of code within an NPR Report Writer Macro: %Z.ddc(@Pgm.name(""))

C/S customers can use the following line of code within an NPR Report Writer Macro: %Z.debug(@Pgm.name(""))

The report DPM, name, and macro will all be used as the first argument for those programs and will be seen when the Debug program displays.

Topics: MEDITECH, Magic System, NPR Report, CS System

You Might Also Enjoy

Sometimes an NPR Report crashes and a screen pops up with some information about the ...

You can use the following steps to write data to your Windows clipboard from an NPR ...

@Translation.message is an NPR Programming Macro that can be used in NPR Report Writer ...

WITH is a Field Attribute that determines when a field should be evaluated during a ...

You can modify your report so that everything that prints is sent to your Windows ...