Entering Source Statements Using the Source Entry Utility

The Source Entry Utility provides special display formats for COBOL which correspond to the COBOL Coding Form and are designed to help you enter COBOL source statements. Figure 3 shows an example of a display format that SEU provides for COBOL. SEU can display a format line to help you enter or make changes to source code, position by position (see  1 ).

Figure 3. An SEU Display Format
Columns . . . :    1  71            Edit                       MYLIB/QCBLLESRC
SEU==> ____________________________________________________________     XMPLE1
FMT CB ......-A+++B+++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 
        *************** Beginning of data *************************************
0001.00        IDENTIFICATION DIVISION.
0002.00          PROGRAM-ID. XMPLE1.
0003.00
0004.00        ENVIRONMENT DIVISION.
0005.00        CONFIGURATION SECTION.
0006.00          SOURCE-COMPUTER.  IBM-ISERIES.
0007.00        INPUT-OUTPUT SECTION.
0008.00        FILE-CONTROL.
0009.00            SELECT FILE-1 ASSIGN TO DATABASE-MASTER.
        ****************** End of data ****************************************
Prompt type . . .   CB      Sequence number . . .  0008.00
Continuation
_
Area-A      Area-B
FILE       -CONTROL.

F3=Exit   F4=Prompt   F5=Refresh          F11=Previous record
F12=Cancel            F23=Select prompt   F24=More keys

For a complete description of how to enter source statements using SEU, refer to ADTS for AS/400: Source Entry Utility.

A compilation unit is an outermost ILE COBOL program and any nested ILE COBOL programs within the outermost program. Multiple compilation units may be entered in a single source member.