ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Populating a DSPF

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

  • Populating a DSPF

    How do i populate a DSPF file using RPG ILE

  • #2
    Re: Populating a DSPF

    Thalhayasir,

    You just move all the fields from lets say a physical file, into the fields you have defined on your display file. Then you use EXFMT to show the screen. An EXFMT does both a write and then sits on the read opcode until someone presses a function key.

    Here is an example of writting to a subfile.



    Hope this helps
    Jamie
    All my answers were extracted from the "Big Dummy's Guide to the As400"
    and I take no responsibility for any of them.

    www.code400.com

    Comment


    • #3
      Re: Populating a DSPF

      One shortcut is to name the fields on the screen, the same as the file. If you are doing an "Add" (or adding new data to the file), you can clear out those fields using the CLEAR op code.

      Comment

      Working...
      X