ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

DSPF record format name

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

  • DSPF record format name

    Is there a way that you know of to retrieve the record format name of a display from the INFDS (or otherwise). Where I work, a lot of our 5250 displays have the record format name on the screen of the dspf record format being displayed. Most of them are hard coded in the DDS. I thought there might be away to make this more generic.

  • #2
    You can retrieve it - the named position is *RECORD - but I don't see how it helps you because the value is only available after you have written/read the format in question - which is too late.

    Comment


    • #3
      You could just put a 10 character output field where you want to display it - your program will know what it is or you wouldn't be able to use it, just set that field to the value before you do the WRITE/EXEFMT statement.

      Comment


      • #4
        I was going to suggest hard-coding it in the DDS, but ... heh ... I see that's what you're already doing. To me, that seems less error-prone and easier in general than setting a field just before the EXFMT or WRITE.

        Comment

        Working...
        X