免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2650 | 回复: 7
打印 上一主题 下一主题

有没有人见过QUALIFIED这个? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-03-09 17:09 |只看该作者 |倒序浏览
我在看DEMO的时候看到定义DS的 这样写的  不知道 QUALIFIED 这属性 干吗用的....

0116.00 D CTL             DS                  QUALIFIED

有见过的没? F1也没发现 这个属性。。。

论坛徽章:
0
2 [报告]
发表于 2010-03-09 17:13 |只看该作者
有的时候还在QUALIFIED后 加 数组 DIM(10)

论坛徽章:
0
3 [报告]
发表于 2010-03-10 12:41 |只看该作者
如果一个程序要调用另外一个程序,如果程序之间的返回参数传递是DS的话,因为这个DS已经在被调用程序中做过说明,调用程序要使用这个DS,必须,而且只能在D表中声明是“QUALIFIED”,这样才能使用。

论坛徽章:
0
4 [报告]
发表于 2010-03-10 12:51 |只看该作者
rpgle程序  是被一个clle 程序调用 ds 是用来传递参数用的...我理解了...{:3_195:}

论坛徽章:
0
5 [报告]
发表于 2010-03-10 18:21 |只看该作者

论坛徽章:
0
6 [报告]
发表于 2010-03-11 09:02 |只看该作者
<ILE RPG Reference>
QUALIFIED
The QUALIFIED keyword specifies that the subfields of a data structure will be
accessed by specifying the data structure name followed by a period and the
subfield name. The data structure must have a name.
The subfields can have any valid name, even if the name has been used elsewhere
in the program. This is illustrated in the following example:
* In this example, FILE1 and FILE2 are the names of files. FILE1 and FILE2 are
* also subfields of qualified data structure FILESTATUS. This is valid,
* because the subfields FILE1 and FILE2 must be qualified by the data structure
* name: FILESTATUS.FILE1 and FILESTATUS.FILE2.
Ffile1 if e disk
Ffile2 if e disk
D fileStatus ds qualified
D file1 N
D file2 N
C open(e) file1
C eval fileStatus.file1 = %error

1.问前先搜索
2.下些工具书,置顶帖子里有

论坛徽章:
0
7 [报告]
发表于 2010-03-11 22:34 |只看该作者
回复 1# 辽B_AS400


    多看看reference吧!书上有啊

无标题.png (60.7 KB, 下载次数: 18)

实例

实例

论坛徽章:
0
8 [报告]
发表于 2010-03-12 14:39 |只看该作者
{:3_195:}
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP