IPeople Blog

Print code for $T Macros in Meditech C/S

Written by Gary | Jan 24, 2022 6:00:00 AM

Steps:

  1.   Select the Report DPM NPR.DOLT
  2.   Enter a report name (any name you like)
  3.   Page 1 will need a Report Title: "_%(NPR)DOLT..zcus.report.M..s(0)_"
    You will need to replace "report" with the name of your report.
  4.   Set Active field set to Y and set Page Banner to NONE
  5.   Add the following Footnotes:

        AL START start
        SFF NO
        EFF NO
        PFF NO
  6.  File and translate your report
  7.  Add a macro called start with the following code:

        ""^/Z.PRT.SUPPRESS.PRINTING^/R.FRAGMENT,
      %NPR.DOLT.print.macros.S("%(NPR)DOLT..print.macros")
  8.  File and translate your start macro
  9.  Add a macro called s with the following code:

         IF{'/GO 1^/GO,
                    1^/Z.PRT.SUPPRESS.PRINTING},
         "PRINT $T MACROS";
  10. File and translate your macro and then retranslate your report again