Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

* Correct the errors in the following program * Enter your name: * identeficatio

ID: 3881290 • Letter: #

Question

     * Correct the errors in the following program
     * Enter your name:
     *
      identefication division.
      program id. labquiz2.

      enviroment division.
      input-output section.
      file control.
           select file out assign to printer, "con'.

     data division.
     file section.
     fd file out label records are omitted.
     01 record-out pic x(80)

     working storagge section.
     01 print-line-out.
           05 filler pic x (20) value spaces.
           05 fillir pic x(17) value ' Hello, Cobol User'.
           05 filler pic x(43) value spaces.

       procedure division.
           open output file out.
           write record-out from print-line out
                 after advencing 3 lines
           close file out.
           run stop.

Explanation / Answer

I am Jeevan. Below is the program without any syntax errors:


IDENTIFICATION DIVISION.            
PROGRAM-ID. labquiz2.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
    SELECT FILEOUT ASSIGN TO PRINTER, 'con'.
DATA DIVISION.
FILE SECTION.
FD FILEOUT LABEL RECORDS ARE OMITTED.
    01 RECORD-OUT PIC X(80).
WORKING-STORAGE SECTION.
    01 PRINT-LINE-OUT.
        05 FILLER PIC X(20) VALUE SPACES.
        05 FILLER PIC X(17) VALUE ' Hello, Cobol User'.
        05 FILLER PIC X(43) VALUE SPACES.
    PROCEDURE DIVISION.
        open OUTPUT FILEOUT.
        WRITE RECORD-OUT FROM PRINT-LINE-OUT
         AFTER ADVANCING 3 LINES.
    CLOSE FILEOUT.
STOP RUN.