* Lab Quiz #1 * 1. Correct the errors in the following * 2. Submit the corrected
ID: 3725784 • Letter: #
Question
* Lab Quiz #1 * 1. Correct the errors in the following * 2. Submit the corrected lab-quiz1.cbl program in blackboard 3. Due: Jan xx * 4. 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
PROGRAM AFTER REMOVING SPELLING MISTAKES AND SYNTAX MISTAKES:
identification division.
program-id. LabQuiz1. //name of the program
environment division.
input-output section.
file-control.
select file-out
assign to PRINTER-CON. // assiging to printer, console
data division.
file section.
fd file-out 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 input file-out.
write record-out from print-line-out
after advancing 3 lines.
close file-out.
stop run.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.