• 如何以某一关键字快速搜索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.

  • 相关阅读:
    【星云测试】Wings-面向企业级的单元测试用例自动编码引擎最新发布
    【星云测试】Wings企业级单元测试自动编码引擎白皮书
    Redis基础之命令篇
    Redis安装与启动
    My Self Introduction
    这就是小学生也会用的四则计算练习APP吗?- by软工结对编程项目作业
    Java余弦计算文本相似度项目—第一次个人编程作业(软件工程)
    Android 开发学习进程0.26 fragment的工厂实例化
    Android 开发学习进程0.25 自定义控件
    Android开发学习进程 0.24 存储机制
  • 原文地址:https://www.cnblogs.com/wildfish/p/1032051.html
Copyright © 2020-2023  润新知