免费注册 查看新帖 |

Chinaunix

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

RPG触发器数据区结构 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-10-28 12:52 |只看该作者 |倒序浏览
Decimal Offset      Parameter          Type                         Description

0     Physical file Name   char(10)      The physical file being changed

10  Physical file library name  char(10)   The library which the physical file resides
     
20 Physical file member name char (10) The name of the physical file member

30 Trigger Event char(1) The event that caused the trigger program to be called; the possible values can be “1” (Insert), “2” (Delete), “3” (Update),“4” (Read)

31 Trigger Time char(1) Can be “1” (After) or “2” (Before)

32 Commit level char(1) Reports the commit lock level of the interface that activated
the trigger “0” (*NONE), “1” (*CHG ), “2” (*CS), “3” (*ALL)

33 Reserved char(3) Reserved

36 CCSID of data binary(4) The CCSID of the data in the new or the original records. The data is converted to the job CCSID by the database

40 Relative record number binary(4) Relative Record Number of the record to be updated or deleted (*BEFORE) triggers) or the relative record number of the record which was inserted, updated, deleted or read (*AFTER triggers)

44 Reserved char(4) Reserved (待续)

论坛徽章:
0
2 [报告]
发表于 2003-10-28 12:56 |只看该作者

RPG触发器数据区结构

48 Original Record offset binary(4) The location of the original record. The offset value is from the beginning of the trigger buffer. This field is not applicable if the original value of the record does not apply to the operation; for example, an insert operation.

52 Old record length binary(4) The maximum length is 32766 bytes.

56 Old record null map offset binary(4) The location of the null byte map of the original record. The offset value is from the beginning of the trigger buffer. This field is not applicable if the original value of the record does not apply to the change operation, for example, an insert operation.

60 Old record null map length binary(4) The length is equal to the number of fields in the physical file.

64 New record offset binary(4) The location of the new record. The offset value is from the beginning of the trigger buffer. This field is not applicable if the new value of the record does not apply to the change operation, for example, a delete operation.

68 New record length binary(4) The maximum length is 32766 bytes.

72 New record null map offset binary(4) The location of the null byte map of the new record. The offset value is from the beginning of the trigger buffer. This field is not applicable if the new value of the record does not apply to the change operation, for example, a delete operation.

论坛徽章:
0
3 [报告]
发表于 2003-10-28 13:00 |只看该作者

RPG触发器数据区结构

76 New record null map length binary(4) The length is equal to the number of fields in the physical file.

80 Reserved char(16) Reserved

* Original record char(*) A copy of the original physical record before being updated,deleted, or read. The original record applies only to update,delete, and read operations.

* Original record null byte map char(*) This structure contains the NULL value information for each field of the original record. Each byte represents one field. The possible values for each byte are: “0” (Not NULL), “1”(NULL)

* New record char(*) A copy of the record that is being inserted or updated in a physical file as a result of the change operation. The new record only applies to the insert or update operations

* New record null byte map char(*) This structure contains the NULL value information for each field of the new record. Each byte represents one field. The possible values for each byte are: “0” (Not NULL), “1” (NULL)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP