please find and correct the error in cobol program

Manish Goyal

Manish Goyal

@manish-r2Hoep Oct 23, 2024
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.  

       

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • gaurav.bhorkar

    gaurav.bhorkar

    @gauravbhorkar-Pf9kZD Apr 12, 2010

    From what I have learnt, everything in a COBOL program should be in CAPITAL letters except what you write in "quotes".