Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1009018
  • 博文数量: 125
  • 博客积分: 10490
  • 博客等级: 上将
  • 技术积分: 2385
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-03 18:26
文章分类

全部博文(125)

文章存档

2011年(1)

2010年(9)

2009年(17)

2008年(98)

分类:

2008-09-29 00:35:40

在编译rpg/rpgle时有时回出现这样的错误信息:
Error message CPF4131 appeared during OPEN for file myfile.
这个信息中cpf4131:的信息
 Message . . . . :   Level check on file &2 in library &3 with member &4.      
 Cause . . . . . :   The file requested to be opened is file &1.  The file     
   actually opened is file &2 in library &3.  For the file actually opened, the
   record format level identifiers supplied by the program does not match the  
   file actually opened.                                                       
 Recovery  . . . :   Do one of the following, then try the request again:      
     -- Compile the program again.                                             
     -- Specify the *NO value for the LVLCHK parameter as an override using the
   appropriate OVRDBF, OVRDSPF, OVRICFF, or OVRPRTF command.                   
这里的意思是让你chg你的myfile,将myfile中的lvchk的*yes改成*no。
原因:myfile被用户从新编译过,所以myfile中的record format level id编译前的不一样,而此时程序还没有重新编译,故程序使用的是旧的lvl id因此程序就抱错了。其解决的办法有两种如下:
1。编译使用该文件的相关程序。
2。使用相关的chg命令如chgpf/chglf等修改file的lvlchk(*no)。
阅读(3944) | 评论(2) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2009-09-11 10:39:49

THANKS, TRY IT.

chinaunix网友2009-09-11 10:39:49

THANKS, TRY IT.