1

学習目的で、私は次のことを試みています: COBOL を介してテーブルを表示しようとしていますSCREEN SECTION....

以下が発生するか、発生するはずです-すべて複数の画面を開くことなく:

(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 MENU
    (3.1) User hits "D" --> List of states and abbreviations is displayed
    (3.2) User hits "S" --> User gets to screen where he can look up state-name  
          by entering abbreviation.
(4) By pressing F2 the user can go back to the MAIN MENU
(5) By pressing F1 the user can exit the program

私の問題は、新しい画面を開かず、状態ごとに行と列の定義を定義する必要がない 3.1 です。THRUこれを簡単にし、画面セクションでこれを定義する方法はありますか? お気に入り:

PERFORM VARYING counter FROM 1 BY 1 UNTIL counter > 50
*<Display the abbreviation and state-name w/o opening new screen>
END-PERFORM.
4

1 に答える 1

1

これを行うには、画面セクションに表示される行を変数の行番号で定義します。この番号自体は、作業領域で個別に定義されます。

ループを使用すると、手続き部で、line 変数に 1 を追加して各行を表示し、その行を表示して繰り返すことができます。

于 2010-02-23T21:52:26.170 に答える