|
Oops... missed one in the mainline:
* Display the screen until user requests exit
B1 C EXIT DOUEQ$YES
* Display the static parts of the screen
RV01dC** WRITEOBJHDR
RV01aC EXSR PSCI01
RV01dC** WRITEOBJOPT
RV01aC EXSR PSCI02
RV01dC** WRITEOBJFKEY
RV01aC EXSR PSCI03
* Display program messages - OS/400 does the hard work
RV01dC** WRITEERRCTL
RV01aC EXSR PSCI04
* If we have object list entries to display
B2 C LSTCNT IFGT *ZERO
* Display the filled SFL and wait for user action
C SETON 9192 SFLDSP SFLDSPCTL
RV01dC** EXFMTOBJCTL1 First SFL
RV01aC EXSR PSCI05
C SETOF 9192 SFLDSP SFLDSPCTL
* . . . otherwise . . .
X2 C ELSE
* Display 'no objects' message
C SETON 92 SFLDSPCTL
RV01dC** WRITEOBJCTL1 First SFL
RV01aC EXSR PSCI06
RV01dC** EXFMTOBJNUN No objects
RV01aC EXSR PSCI07
C SETOF 92 SFLDSPCTL
E2 C END LSTCNT > *ZERO
*
E1 C END EXIT U= $YES
Joe
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.