Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.
Sloopy | Jul 24 2008 3:12PM GMT
If you mean, show each subfile page on the screen as your program loads the subfile, so that the user can watch the page whizz by….
To do this, after every page has been loaded do a WRITE to the subfile control record, with SFLDSP on. Your screen DDS must be created with DFRWRT(*NO) for this to work. The subfile RRN field in the subfile control record format must be set to a valid subfile record number on the page to be displayed (usually this will be the last RRN on the page, of course).
Depending on how fast your system / program is, this method of displaying could cause eye strain!
On the other hand, if what you want is for the program to display the page of a subfile that has a record on which your program is working, then you do much the same thing - write the subfile control with SFLDSP on, and with DFRWRT(*NO). MKS’s IMPLEMENTER software does this, when you promote a group of objects. It processes each object in the subfile, and when it starts to process the first object on the next page it writes that page to the screen. Implementer is relatively slow at this, and does not cause too much eye strain.
If you want to do something other than these two things, please give more details!
Regards,
Sloopy