我正在尝试制作一个非常简单的COBOL程序.我已经设置了我的目录,配置等,但是当我去编译它时,我得到了这个错误:
sampleCOBOL.cbl: In paragraph 'Main-Paragraph' :
sampleCOBOL.cbl:9: Error: syntax error, unexpected "end of file"
Run Code Online (Sandbox Code Playgroud)
("sampleCOBOL.cbl"是我的文件名)
这是我的文件包含的内容:
Identification Division.
Program-ID. sampleCOBOL.
Data Division.
Procedure Division.
Main-Paragraph.
Display "Hello World!"
Stop Run.
Run Code Online (Sandbox Code Playgroud)
我知道错误发生在第9行("停止运行").但是,为什么呢?