gpt4 book ai didi

programming-languages - 这是什么语言?

转载 作者:行者123 更新时间:2023-12-04 02:39:24 25 4
gpt4 key购买 nike

一位前同事给我们留下了数千行这样的代码。这更像是一种好奇,因为我用不太晦涩的语言重写了他所做的一切:-)

不过我很好奇。这是元代码还是实际语言?

  DATA DIVISION.

WORKING-STORAGE SECTION.

78 dialog-system VALUE "DIV".

01 Display-Error.
03 Display-Error-No PIC 9(4) comp-5.
03 Display-Details-1 PIC 9(4) comp-5.
03 Display-Details-2 PIC 9(4) comp-5.
05 Display-Details-3 PIC 9(4) comp-5.


COPY "DS-CNTRL.MF".
COPY "ThisApp.txt".


PROCEDURE DIVISION.

*---------------------------------------------------------------*

Main-Process SECTION.
PERFORM Program-Initialize
PERFORM Program-Body UNTIL EXIT-FLAG-TRUE
PERFORM Program-Terminate
.

*---------------------------------------------------------------*

Program-Initialize SECTION.

INITIALIZE Ds-Control-Block
INITIALIZE Data-block
MOVE Data-block-version-no
TO Ds-Data-Block-Version-No
MOVE Version-no TO Ds-Version-No

MOVE Ds-New-Set TO Ds-Control
MOVE "MyApp" TO Ds-Set-Name

.

*---------------------------------------------------------------*

Program-Body SECTION.

PERFORM Call-Dialog-System
.

*---------------------------------------------------------------*

Program-Terminate SECTION.

STOP RUN
.

*---------------------------------------------------------------*

Call-Dialog-System SECTION.

CALL dialog-system USING Ds-Control-Block,
Data-Block
IF NOT Ds-No-Error
MOVE Ds-System-Error TO Display-error
DISPLAY "DS ERROR NO: " Display-error-no
DISPLAY "Error Details(1) : " Display-Details-1
DISPLAY "Error Details(2) : " Display-Details-2
DISPLAY "Error Details(3) : " Display-Details-3
PERFORM Program-Terminate
END-IF

最佳答案

关于programming-languages - 这是什么语言?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2342328/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com