ibm midrange - How to clear the screen on an AS400? -
Is there any way to clean the screen in the RPG for AS 400? I clrscr ()
c.
You clear the screen with the RPG , But it is not like clrsrc ()
The RPG does not directly address the screen. You work with a device file aka display file (DSPF). The standard way to create that file is with DDS source and DDS compiler (always available on AS / 400). DSPF has one or more records. The RPG program writes or reads these records. If you write a record defined with the keyword CRLR (), then your screen will be clear. Also read about the overlay () which goes hand in hand with this keyword.
All information is described in DDS
I think that you need to start with understanding the system. (It is quite simple but requires a little reading.)
Disclaimer: There are more ways to do this (including dirty and dirty tricks). But RPG + DDS is the preferred, standard and most used way in the world of iSeries.
Comments
Post a Comment