gpt4 book ai didi

dynamic - 调用COBOL程序的默认模式是什么?静态还是动态?

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

我最近参加了一次面试,被问到这个问题:

How are cobol programs are called when no compiler option specified? Static or dynamic?

我的答案是动态的,但我不确定正确的答案是什么。

最佳答案

How are cobol programs are called when no compiler option specified? Static or dynamic?

这似乎是一个棘手的问题,因为默认值是:CALL 文字 是静态的,CALL 标识符 是动态的。

参见http://publibfp.boulder.ibm.com/epubs/pdf/igy6pg20.pdf ,适用于 z/OS 的企业 COBOL,编程指南,版本 6.2,SC27-8714-01。

第338页,DLL

Default is: NODLL

Pge 340,动态

Default is: NODYNAM

第 498 页,进行静态调用

When you use the CALL literal statement in a program that is compiled using the NODYNAM and NODLL compiler options, a static call occurs. With these options, all CALL literal calls are handled as static calls.

第 499 页,进行动态调用

When you use a CALL literal statement in a program that is compiled using the DYNAM and the NODLL compiler options, or when you use the CALL identifier statement in a program that is compiled using the NODLL compiler option, a dynamic call occurs.

[已添加强调]

关于dynamic - 调用COBOL程序的默认模式是什么?静态还是动态?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53044866/

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