免费注册 查看新帖 |

Chinaunix

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

大家来分析一下,5626这条记录到底出了什么问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2002-12-31 10:48 |只看该作者 |倒序浏览
SELECT * FROM v623fse/cicl01 WHERE                           
SUBSTR(RTRIM(ICPROD),CHARACTER_LENGTH(RTRIM(ICPROD)),1) = 'L'
Selection error involving field ICPROD.
                        Additional Message Information                        
                                                                              
Message ID . . . . . . :   QRY2283                                            
                                                                              
                                                                              
Message . . . . :   Selection error involving field ICPROD.                  
                                                                              
Cause . . . . . :   The query did not run because of a comparison operand     
  involving data from field ICPROD (in record 5626 of file CIC in V623FSE if  
  other than *N). The ICPROD data is not necessarily incorrect, since the     
  operand could be an expression involving other fields and constants as well
  as ICPROD, or it could require some sort of conversion that could not be   
  performed successfully.                                                     
    To determine the specific cause of this problem, and to see if additional
  problems have been encountered in processing other fields or records, use   
  the Display Job Log (DSPJOBLOG) command or press F10=Display messages in job
  log.                                                                        
Recovery  . . . :
  If the problem occurred running a saved query definition, make sure the   
query is using the latest file information. If a selected file could have   
been deleted and created as a new file after the query was saved, use the   
WRKQRY command to change and save the query, then run the query again, or   
use the record selection option of the RUNQRY command.                     
  If the problem occurs using the latest file information, correct the data,
remove the selection test that keeps the query from running, redefine      
selection tests in such a way that the test causing the problem never has to
be used for the records from which the incorrect data would come, or use a  
processing option that causes the incorrect data to be tolerated.           
  Some examples:                                                            
  -- If ICPROD is a field in file CIC in V623FSE and the value in record   
5626 is displayed or printed as a string of plus (+) characters for the  default query for the specified member, ask the owner of the file to correct
the data.  Or, if the field is a numeric field and you are using Query/400  
and want to ignore decimal data errors, go to the Specify Processing Options
display and type Y in the Ignore decimal data errors prompt.  Then run the  
query again.                                                               
  -- If the problem is diagnosed for *N or some unfamiliar name, look for a
field that is displayed or printed as a string of plus (+) characters in   
some records when the test in which it is used is removed. Display the      
messages in the job log for information that might help you correct the     
problem without removing the selection test. If there is no additional      
information, make an additional change to select the field for sorting      
records and try again.                                                                          

论坛徽章:
0
2 [报告]
发表于 2002-12-31 12:19 |只看该作者

大家来分析一下,5626这条记录到底出了什么问题

先看一下该纪录是否有什么特别的地方(就是与起他纪录不同)?

论坛徽章:
0
3 [报告]
发表于 2002-12-31 12:29 |只看该作者

大家来分析一下,5626这条记录到底出了什么问题

我用18看了一下,发现除少数几个字段外,其余都是空值,包括键字段。
删除后就好了。
多谢wws75111

论坛徽章:
0
4 [报告]
发表于 2003-01-01 00:56 |只看该作者

大家来分析一下,5626这条记录到底出了什么问题

可能是你的这个记录的关键字在写入时写进去的是这样的值
*loval写进了字符型的字段。或者有溢出。

论坛徽章:
0
5 [报告]
发表于 2003-01-08 21:55 |只看该作者

大家来分析一下,5626这条记录到底出了什么问题

用DSPPFM来查询数据的内容
用功能键切换查看十六制码
看是不是有问题

论坛徽章:
0
6 [报告]
发表于 2003-01-09 10:06 |只看该作者

大家来分析一下,5626这条记录到底出了什么问题

好,5分。
那么用什么可以根据记录号来删除记录呢?

论坛徽章:
0
7 [报告]
发表于 2003-01-09 18:45 |只看该作者

大家来分析一下,5626这条记录到底出了什么问题

用rrn(file)函数来定位纪录。

论坛徽章:
0
8 [报告]
发表于 2003-01-09 21:00 |只看该作者

大家来分析一下,5626这条记录到底出了什么问题

在RPG中的F表为这个文件定义文件信息数据结构
FFILE      UF   E             DISK    InfDs(FileDs)
再定义FileDs
D FileDs          Ds
D  FileRrn              397    400I 0
用需要的记录号去CHAIN该文件
就可以删除了
snowbird 该用户已被删除
9 [报告]
发表于 2003-01-10 20:07 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
snowbird 该用户已被删除
10 [报告]
发表于 2003-01-10 20:19 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP