在编译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)。
阅读(3097) | 评论(0) | 转发(0) |