ERROR MESSAGE

5 pts.
Tags:
COBOL
COBOL debugging
COBOL ERROR MESSAGE
Hello, I AM A BINGINNER IN COBOL PROGRAM: MY FIRST PROGRAME NOT COMPILING WITH THIS ERROR MESSEAGE PLEASE PUT ME THROUTH 000026 HELLO 15 110 No initial SECTION. sourse Code Attached below IDENTIFICATION DIVISION. 000002 PROGRAM-ID. PROGRAM-HELLO. 000003 ENVIRONMENT DIVISION. 000004 CONFIGURATION SECTION. 000005 SPECIAL-NAMES. 000006 DATE IS "S-". 000007* A- American, E- European. 000008 INPUT-OUTPUT SECTION. 000009 FILE-CONTROL. 000010 000011 DATA DIVISION. 000012 FILE SECTION. 000013 000014 000015 000016 LINKAGE SECTION. 000017 SCREEN SECTION. 000018 PROCEDURE DIVISION. 000019 000020 PROGRAM-BEGIN. 000021 000022 DISPLAY "Hello World". 000023 000024 PROGRAM-DONE. 000025 000026 MAIN-ROUTINE SECTION. 000027 MAIN-ENTRY. 000028 000029 STOP RUN. � thanks
ASKED: July 10, 2009  10:27 AM
UPDATED: July 11, 2009  5:06 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

It looks like the IDENTIFICATION DIVISION does not start in the same column as the other DIVISIONs. Try moving it a few spaces to the right and re-complile. (Align the ID DIVISION with the other DIVISIONs)

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Gmil494
    As previously mentioned IDENTIFICATION DIVISION is not aligned with following paragraphs. Note: in the program source the following:: 000026 HELLO 15 110 No Initial Section (compiler looking for something missing...O) 000006 Date is "S-" (I;ve never seen this in AS/400 or IBM mainframe COBOL? Correct/valid Y/N?) Are you showing all source code (I notice that some lines have no source code entries...) Linkage and Screen sections are valid but may not required, what to they reference and what are they linked to (linkage/screens you'll need DDS for external screen or program described screen is missing - unless you have overlooked these sections and have entered them with nothing in the source code referencing them... 000026 Main Routine Section reference your source code line 000024 Program-Done (exists before 000026 Main-Routine...) lines 000024 and 000026 are out of sequence, the program ends before the main routine (000026) is executed...
    365 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following