查询RPGLE中的显示文件声明

发布于 2025-01-20 01:56:44 字数 198 浏览 5 评论 0原文

最近,我以前从未遇到过这样的声明,因为

F dspfile CF   E  WORKSTN maxdev(*file) usropn

我以前从未遇到过这样的声明。首先,没有称为dspfile的实际文件,因此我认为这是动态获取文件名。其次,我不了解maxDev(*文件)部分。

有人可以在这里向我解释宣言。

Recently I have come across as display file declaration as

F dspfile CF   E  WORKSTN maxdev(*file) usropn

I have never encountered any declaration like this before. Firstly there is no actual file called dspfile, so I assume this is getting file name dynamically. Secondly I don't understand the maxdev(*file) part.

Can someone kindly explain the declaration here to me.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

看海 2025-01-27 01:56:44

DPSPFILE 可能是DSPF 或ICFF,也可能是在编译/运行时通过OVRDSPF/OVRICFF “声明”的

。这些设备文件能够处理多个设备。例如,这种东西已被用于仅使用一项作业来处理多个工作站的事务,然后程序使用的资源(内存、文件打开的访问路径等)不会与工作站的数量相乘,从而使应用程序更加高效可扩展。

也就是说,我从未在培训课程之外使用过此类东西。

从这个角度来看,您已经知道的显示文件使用是一种特殊情况,其中 CRTDSPF 与默认值 DEV(*REQUESTER) MAXDEV(1) 一起使用,

如果您的程序不使用 ACQ 或 REL 等操作码,并且如果您不使用没有使用 DEV 或 MAXDEV 关键字找到任何 (CRT|CHG|OVR)DSPF 而不是任何 ICFF,那么您可能可以忽略您发现的内容

从文档中阅读更多内容:ILE RPG 程序员指南

DPSPFILE may be a DSPF or ICFF, and maybe it's "declared" at compile/run time through OVRDSPF/OVRICFF

Those device files are able to handle multiple devices. This kind of things has been used for example to handle transactions with multiple workstations using only one job, then ressources used by the program (memory, file opened access path, ...) do not multiply with the number of workstation, making applications more scalable.

That said I have never used such things outside of a training course.

From this point of view the display file use you already know is a particular case where CRTDSPF is used with default values DEV(*REQUESTER) MAXDEV(1)

If your program doesn't use opcodes like ACQ or REL, and if you don't find any (CRT|CHG|OVR)DSPF using DEV or MAXDEV keywords not any ICFF, then probably you can ignore what you found

Read more from the docs : ILE RPG Programmer's guide

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文