I need to have a screen refresh the data after being displayed for 30 seconds on the screen. I am displaying a subfile and need the ability to page up and down. I have tried several options, such as building the subfile, writing the control record, waiting for 30 seconds then reading the control record. The problem occurs, after reading the control record, the progam will wait for a key to be pressed on the screen which defeats the purpose of the automatic refresh. How do I maintain the ability to page up and down and have the screen automatically refresh after a selected period of time? The program is RPGILE.
Software/Hardware used:
ASKED:
January 5, 2006 11:23 AM
UPDATED:
November 23, 2009 7:51 AM
Hi,
In the display file DDS code an INVITE on the record header ands condition it with an indicator.
In the RPG code MAXDEV(*FILE) INFDS(IODATA) for the workstation file. e.g.
FMSM640DF CF E WORKSTN
F MAXDEV(*FILE)
F INFDS(IODATA)
Code the IODATA data structure e.g.
D IODATA DS
D STATUS *STATUS
Change the EXFMT’s to be WRITE/READS. Before the WRITE seton the indicator that was used to condition the INVITE. After the READ check the condition of STATUS e.g.
Note 58 in