---
title: Print code for $T Programs in Meditech C/S
description: For MEDITECH C/S, this allows you to see the code logic of $T programs which can help when debugging.
---

[![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)

January 10, 2022

# Print code for $T Programs in Meditech C/S

1. Select the Report `DPM NPR.DOLT`
2. ``Enter a report name (any name you like)
3. Page 1 will just need a Report Title and the Active field set to `Y,` and set Page Banner to `NONE`
4. ``Add the following Footnotes:  
   AL START start  
   SFF NO  
   EFF NO  
   PFF NO
5. File and translate your report
6. Add a macro called `start` with the following code:  
   `""^NPR.DOLT.program.name,`  
   `DO{@Next(NPR.DOLT.program.name) IF{NPR.DOLT.program.name="IPL";`  
   `1^/DOLT,`  
   `NPR.DOLT.program.name^c.procedure.urn,`  
   `%NPR.PROC.list.logic.M.compile(""),`  
   `I("PROGRAM: "_c.procedure.urn)N^!,`  
   `""^X,`  
   `DO{+/R.MV["D",X]^X I(/R.MV["D",X,10])N^!},`  
   `""^X,`  
   `DO{@Add(1,X)'>3 N("")^!}}}`
7. ``File and translate your macro and then retranslate your report again

The code for the program IPL does not print via this report. I have found that the `NPR.PROC.list.logic.M.compile` macro crashes when printing the IPL program.

 Topics: [Report Writing](https://blog.ipeople.com/topic/report-writing), [NPR Report](https://blog.ipeople.com/topic/npr-report)

## You Might Also Enjoy

<https://blog.ipeople.com/debug-functionality-in-magic-npr>

#### [Debug functionality in MAGIC NPR](https://blog.ipeople.com/debug-functionality-in-magic-npr)

The NPR Procedure Z.ddc comes in very handy for debugging both NPR reports and ...

<https://blog.ipeople.com/add-a-web-page-link-to-npr-reports-printed-to-web-browser-is-meditech-cs>

#### [Add a web page link to NPR Reports printed to web browser is MEDITECH CS](https://blog.ipeople.com/add-a-web-page-link-to-npr-reports-printed-to-web-browser-is-meditech-cs)

Some C/S sites are set up to allow Browser as an option for printing reports. These ...

<https://blog.ipeople.com/activate-spy-option-in-meditech-c/s>

#### [Activate Spy option in Meditech C/S](https://blog.ipeople.com/activate-spy-option-in-meditech-c/s)

Meditech's C/S software has a nice function for "spying" on your own "job". If you are ...

<https://blog.ipeople.com/accessing-useful-routine-npr.seg.id.editor-in-meditech-cs-software>

#### [Accessing useful routine NPR.SEG.id.editor in MEDITECH CS Software](https://blog.ipeople.com/accessing-useful-routine-npr.seg.id.editor-in-meditech-cs-software)

NPR.SEG.id.editor is a very useful routine in MEDITECH's C/S software that provides handy ...

<https://blog.ipeople.com/pgm.name-returns-the-name-of-the-current-meditech-npr-procedure>

#### [Pgm.name returns the name of the current MEDITECH NPR Procedure](https://blog.ipeople.com/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 ...

[![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)