ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Printing Date data types

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Printing Date data types

    I have some fields in my tables defined as Date Data Types. By default, the data types are set to 01/01/0001. On the display, I use keyword MAPVAL(('01/01/0001' *BLANK)) to display the field as blank. There doesn't appear to be a similar keyword for external Print Files. Anyone have any tips on how to work around. I guess I could condition print on an indicator but was looking for alternatives.

  • #2
    One alternative is to use a character field in the print file and load it only when there is a date you want to print:
    Code:
    Clear prtdate;
    If realdate > *loval;
      Eval prtdate = %char(realdate:*usa);
    Endif;

    Comment


    • #3
      I'm missing MAPVAL for printerfiles too.
      If you raise a RFE ( request for enhancement ) I would vote for it.

      Comment

      Working...
      X