Hey everyone,
For learning purposes I am trying the following:
I am trying to display a table via COBOL ... I want to define the way it is all displayed in the SCREEN SECTION
.
Following happens or is supposed to happen - all without multiple screens opening:
(1) User enters ENTRY-SCREEN
(2) User has to type in a password (nothing happens there yet ... I am going
step by step)
(3) User hits ENTER and gets to the MAIN MENUE
(3.1) User hits "D" --> List of states and abbrevations is displayed
(3.2) User hits "S" --> User gets to screen where he can look up state-name
by entering abbrevation.
(4) By pressing F2 the user can go back to the MAIN MENUE
(5) By pressing F1 the user can exit the program
My problem is 3.1 without opening a new screen and without having to define a line and column definition for each state.
Is there a way - maybe with a loop or with THRU
- to make this easier and maybe even define this in the screen section?
Like:
PEFORM VARYING counter FROM 1 BY 1 UNTIL counter > 50
*<Display the abbrevation and state-name w/o openeing new screen>
END-PERFORM.
I hope I made myself clear. If not, please ask or say so. Thnx!