如何以某一关键字快速搜索AS/400 中的Message file

 用DSPMSGD命令可以查看某个已知某一个的Message ID的内容,但是它不能按照某个关键字查看一个message file中的所有message id,如何按某个关键字搜索整个Message file中的所有message id 呢?
解答 1.在AS/400命令行上输入命令:
DSPMSGD RANGE(*ALL) MSGF(QSYS/QCPFMSG) DETAIL(*BASIC) OUTPUT(*PRINT)
参数说明:
RANGE(*ALL): 列出所有的message id。

MSGF(QSYS/QCPFMSG): 查看QSYS目录下的QCPFMSG message file。

DETAIL(*BASIC): DETAIL参数有两个选项,*FULL -> 列出message的所有信息;
*BASIC -> 仅列出message id,message的严重级别和message描述。

OUTPUT(*PRINT): 将命令的执行结果生成一个Spool file。

2.命令执行完成之后,生成Spool file:QPMSGD。

3.在AS/400命令行上执行命令:
-----------WRKSPLF

4.在QPMSGD文件前输入 5(display),打开这个文件。

5.在“Find”处输入要搜索的关键字,如:艘索“password”关键字,按功能键F16,即可搜索所有Message file的内容。如下图所示:

File . . . . . : -QPMSGD -----------Page/Line --21/33
Control . . . . . ------------------Columns ----1 - 75
Find . . . . . . -password
*...+...1...+...2...+...3...+...4...+...5...+...6...+...7...+
CPC1E75 -0 -Some system options not changed. Some changed and require I
CPC1E76 -0 -Some passwords not changed. Try again later.
CPC1E77 -0 -Passwords successfully changed.
CPC1E78 -0 -System options successfully changed; IPL required.
CPC1E79 -0 -System options successfully changed.
CPC1115 50 -CPC1115 Class &1 in library &2 not found.
CPC1116 50 -CPC1116 Program &1 in library &2 not found.
CPC1117 50 -CPC1117 Routing data does not match routing entry.
CPC1118 50 -CPC1118 Maximum number active jobs for routing entry reache
CPC1119 50 -CPC1119 No authority to class &1 in &2.
CPC1120 50 -CPC1120 No authority to program &1 in &2.
CPC1121 50 -CPC1121 No storage requested for storage pool.
CPC1122 50 -CPC1122 Function check occurred while trying to start job.
CPC1123 60 -Subsystem &1 cannot start prestart job &2.
CPC1124 50 -ENDJOBABN issued against job &3/&2/&1 by user &4.
CPC1125 50 -Job &3/&2/&1 was ended by user &4.
--------------------------------------------------------------------More.
posted @ 2008-01-09 15:06  深渊野鱼  阅读(1327)  评论(0编辑  收藏  举报