免费注册 查看新帖 |

Chinaunix

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

错误处理 G -- Continue processing at *GETIN.具体含义是什么 [复制链接]

论坛徽章:
1
操作系统版块每日发帖之星
日期:2015-08-03 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-05 14:40 |只看该作者 |倒序浏览
一个程序执行报错,由于 在delete之前 chain的时候 该条记录已经被其他程序锁,导致delete报错如下
G -- Continue processing at *GETIN.具体含义是什么 跳过错误继续执行?

                         Additional Message Information                        
                                                                                
Message ID . . . . . . :   RPG1221       Severity . . . . . . . :   99         
Message type . . . . . :   Inquiry                                             
Date sent  . . . . . . :   06/01/04      Time sent  . . . . . . :   17:04:26   
                                                                                
Message . . . . :   RCA002 26400 issued update or delete in RCA001WK without   
   prior READ or CHAIN (C G S D F).                                             
Cause . . . . . :   The RPG program RCA002 in library MM4R4PGM at statement   
   26400 tried to update or delete a record in file RCA001WK without a previous
   READ or CHAIN. The actual file is  MM4R4LIB/RCA001WK MEMBER - RCA001WK.      
Recovery  . . . :   Enter C to cancel, G to continue processing at *GETIN, S   
   to obtain a system dump, or D to obtain an RPG formatted dump.               
Possible choices for replying to message . . . . . . . . . . . . . . . :      
   D -- Obtain RPG formatted dump.                                             
   S -- Obtain system dump.                                                     
   G -- Continue processing at *GETIN.                                          
                                                                        More...
Type reply below, then press Enter.                                            
Reply  . . . .                                                                 
                                                                                
F3=Exit   F6=Print   F9=Display message details                                
F10=Display messages in job log   F12=Cancel   F21=Select assistance level

论坛徽章:
0
2 [报告]
发表于 2006-01-05 17:31 |只看该作者
意思可能是在当前模块得到输入记录例程继续执行.选择它我理解就会跳回当前模块继续执行,不过这样还会出错.

你可以使用程序信息状态结构,在模块中做个错误处理子例程.  如果是记录锁定,再采取相应动作...这个因人而异..

论坛徽章:
0
3 [报告]
发表于 2006-01-09 14:43 |只看该作者
原帖由 tomroom 于 2006-1-5 14:40 发表
一个程序执行报错,由于 在delete之前 chain的时候 该条记录已经被其他程序锁,导致delete报错如下
G -- Continue processing at *GETIN.具体含义是什么 跳过错误继续执行?

                         Addition ...


看原因是你在UPDATE和DELETE前没有先去CHAIN这条记录,那他怎么去更新和删除呢? 请确定是否之前CHAIN了,而且必须CHAIN的还是RCD而不是FILE;再有就是你说的已经锁了,可以手动解锁啊,UNLOCK  FILE。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP