免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: pp263
打印 上一主题 下一主题

rpg3中reade没用关键字读是不是就相当于read?? [复制链接]

论坛徽章:
0
11 [报告]
发表于 2009-06-22 15:42 |只看该作者
total同意8楼的说法,赶快结案陈词吧

论坛徽章:
0
12 [报告]
发表于 2009-07-03 10:09 |只看该作者
reade,read ,没有key时不是等同的。
程序编译能通过, 但在读取数据时出现错误,程序通不过。

论坛徽章:
0
13 [报告]
发表于 2009-12-15 08:43 |只看该作者
原帖由 1067049 于 2009-6-10 01:05 发表
取决于你setll的factor1 .
reade的factor1是可选的.


今天偶然的一次SOURCE REVIEW发现了这个问题,确实是这样。 在用KLIST SETLL之后 不管READE前面写不写KLIST,READE后面的EQ指示器依然能够正确的反应出读取的结果。

论坛徽章:
0
14 [报告]
发表于 2009-12-15 11:13 |只看该作者

回复 #1 pp263 的帖子

看看吧这是针对reade的)
Note: If factor 1 equals the key of the current record or if factor 1 is not specified,
the key comparison takes place at the Data Management level; otherwise, it takes
place within the RPG/400 program. If the file being read is defined as update and
the compare is by RPG, a temporary lock on the next record is requested and the
search argument is compared to the key of that record. If the record is already
locked, the program must wait until the record is available before obtaining the temporary
lock and making the comparison. If the comparison is unequal, the recordnot-
found indicator is turned on, and the temporary record lock is removed. If no
lock (N in position 53) is specified, a temporary lock is not requested.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP