8月 01, 2015

COBOL 的HELLO WORLD 並省略IDENTIFICATION DIVISION.

        
        ID DIVISION.
        PROGRAM-ID. P0609.
        ENVIRONMENT DIVISION.
        DATA DIVISION.
        PROCEDURE DIVISION.
        MAIN SECTION.
        MAIN-RTN.
            DISPLAY 'HELLO WORLD' LINE 30 POSITION 20.
            EXIT PROGRAM.
PE2 P0609.CBL -F2 存檔 F3 存檔關閉 F5清行 F9 新增下一行
RMCOBOL P0609.CBL
RUNCOBOL P0609
DISPLAY 'HELLO WORLD' LINE 30 ERASE. --可清除螢幕

沒有留言: