---
title: Pgm.name returns the name of the current MEDITECH NPR Procedure
description: Great MEDITECH NPR Report Writing tip for debugging troubling reports.  This allows you to see which NPR procedure is executing.
---

[![IPeopleHealthcare_White](https://blog.ipeople.com/hubfs/IPeopleHealthcare_White.png)](https://www.ipeople.com/)

- [Home](https://www.ipeople.com)
- Products 
    - [Professional Services](https://www.ipeople.com/products/meditech-services/)
    - [Downtime Product Suite](https://www.ipeople.com/products/suite)
- [Benefits](https://www.ipeople.com/benefits)
- [About](https://www.ipeople.com/about)
- [Contact](https://www.ipeople.com/contact)
- [IPeople Blog](https://blog.ipeople.com)

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](https://blog.ipeople.com/topic/meditech), [Magic System](https://blog.ipeople.com/topic/magic-system), [NPR Report](https://blog.ipeople.com/topic/npr-report), [CS System](https://blog.ipeople.com/topic/cs-system)

## You Might Also Enjoy

<https://blog.ipeople.com/utility-report-magic-nui-workstation-only-for-displaying-all-available-npr-icons>

#### [Utility report (MAGIC NUI Workstation only) for displaying all available NPR Icons](https://blog.ipeople.com/utility-report-magic-nui-workstation-only-for-displaying-all-available-npr-icons)

Users can attach "Icons" from the NPR.ICON dictionary to "Desktop" style menus for the ...

<https://blog.ipeople.com/print-screens/reports/macros/procedure-logic-for-npr-procedures-in-meditech-c/s>

#### [Print Screens/Reports/Macros/Procedure Logic for NPR Procedures in MEDITECH C/S](https://blog.ipeople.com/print-screens/reports/macros/procedure-logic-for-npr-procedures-in-meditech-c/s)

Select the Report DPM NPR.PROC Enter a report name (any name you like) Page 1 will need a ...

<https://blog.ipeople.com/use-npr-report-to-write-to-the-windows-clipboard-magic>

#### [Use NPR Report to write to the Windows Clipboard (MAGIC)](https://blog.ipeople.com/use-npr-report-to-write-to-the-windows-clipboard-magic)

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

<https://blog.ipeople.com/meditech-macro-translation.message-creates-useful-reminders-when-it-translate>

#### [MEDITECH macro Translation.message creates useful reminders when it translate](https://blog.ipeople.com/meditech-macro-translation.message-creates-useful-reminders-when-it-translate)

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

<https://blog.ipeople.com/using-the-with-footnote>

#### [Using the WITH footnote](https://blog.ipeople.com/using-the-with-footnote)

WITH is a Footnote that allows you to specify which Subscript a user-defined (xx) field ...

[![IPeopleHealthcare_FullColor](https://blog.ipeople.com/hubfs/IPeopleHealthcare_FullColor.png)](https://www.ipeople.com/)

#### CONTACT

- [+1-214-222-1125](tel:+1-214-222-1125)
- [support@ipeople.com](mailto:support@ipeople.com)
- [sales@ipeople.com](mailto:sales@ipeople.com)

#### [JOIN OUR TEAM](https://ipeople.bamboohr.com/jobs/)

#### FOLLOW

- [![Facebook](https://blog.ipeople.com/hubfs/Facebook.svg)](https://www.facebook.com/IPeoplehealthcareTX)
- [![Instagram](https://blog.ipeople.com/hubfs/Instagram.svg)](https://www.instagram.com/interfacepeople/)
- [![Linkedin](https://blog.ipeople.com/hubfs/Linkedin.svg)](https://www.linkedin.com/company/ipeople-healthcare)
- [![Twitter](https://blog.ipeople.com/hubfs/Twitter.svg)](https://twitter.com/InterfacePeople)
- [![email_icon](https://blog.ipeople.com/hubfs/email_icon.svg)](mailto:support@ipeople.com)

 

![](https://blog.ipeople.com/hubfs/IPeople_2022_Aug/Images/Home/arrow-up.png)