please find and correct the error in cobol program
@manish-r2Hoep
•
Oct 23, 2024
Oct 23, 2024
1.1K
guys i am not able to correct this program .please check if you can find and correct some error in this
IDENTIFICATION DIVISION.
PROGRAM-ID. OPEN-CLOSE.
AUTHOR. MANISH.
ENVIRONMENT DIVISION.
INPUT-OUTPUT SECTION.
FILE-CONTROL.
SELECT StudentFile ASSIGN TO DISK
ORGANIZATION IS LINE SEQUENTIAL.
DATA DIVISION.
FILE SECTION.
FD StudentFile.
01 StudentDetails.
02 StudentId PIC 9(7).
PROCEDURE DIVISION.
Begin.
OPEN OUTPUT StudentFile.
DISPLAY "Enter student details using template below".
PERFORM GetStudentDetails.
WRITE StudentDetails.
CLOSE StudentFile.
STOPRUN.
GetStudentDetails.
DISPLAY "Enter StudId".
ACCEPT StudentDetails.