Reputation: 2025
So, I'm studying Cobol and qhen I try to build my code, I get the following error:
soma.cob:8: Error: Invalid level number 'linkage-section'
the file soma.cob, is that:
IDENTIFICATION DIVISION.
PROGRAM-ID. SOMA.
data division.
working-storage section.
77 RESPT PIC 9(2) VALUE ZEROS.
linkage-section.
01 CAMP1 PIC 9(2).
01 CAMP2 PIC 9(2).
PROCEDURE DIVISION USING CAMP1 CAMP2.
COMPUTE RESPT = CAMP1+CAMP2.
DISPLAY RESPT.
so, where is the problem ????
Upvotes: 1
Views: 1027
Reputation: 4116
Instead of linkage-section.
, you need to write linkage section.
.
Upvotes: 6