An internal error occurred during: "Generating Model". Koopa input is invalid

41 views
Skip to first unread message

Tarun Kumar

unread,
Mar 2, 2015, 1:49:33 AM3/2/15
to openlega...@googlegroups.com, engg....@gmail.com
I am not able to generate model for following COBOL code.

      IDENTIFICATION DIVISION.
      PROGRAM
-ID. HELLOWORLD.
      PROCEDURE DIVISION
.
          DISPLAY
'HELLO WORLD'.              
      STOP RUN
.


Getting error "An internal error occurred during: "Generating Model". Koopa input is invalid"
But if we add LINKAGE SECTION it works fine, and generate Model.

      IDENTIFICATION DIVISION.
      PROGRAM
-ID. HELLOWORLD.
      DATA DIVISION
.                                                                                                                
      LINKAGE SECTION
.                                                        
     
01 TOP-LEVEL.                                                                
         
05  ITEM-NUMBER               PIC 9(4).                                                            
      PROCEDURE DIVISION
.
          DISPLAY
'HELLO WORLD'.              
      STOP RUN
.

Please help me to Identify, why the first code is not working, as Linkage Section is not a mandatory part. Both the code are compiling successfully in AS/400 COBOL.

Roi Mor

unread,
Mar 2, 2015, 7:45:57 AM3/2/15
to openlega...@googlegroups.com, engg....@gmail.com
Hello Tarun and welcome to our community.

Linkage section is mandatory during parsing because this is the only part which we parse.
An RPC call is exchanging input/output parameters with the linkage section.

We will add a warning instead of a fatal error.
Reply all
Reply to author
Forward
0 new messages