Skip to Main Content
IBM Power Ideas Portal


This portal is to open public enhancement requests against IBM Power Systems products, including IBM i. To view all of your ideas submitted to IBM, create and manage groups of Ideas, or create an idea explicitly set to be either visible by all (public) or visible only to you and IBM (private), use the IBM Unified Ideas Portal (https://ideas.ibm.com).


Shape the future of IBM!

We invite you to shape the future of IBM, including product roadmaps, by submitting ideas that matter to you the most. Here's how it works:

Search existing ideas

Start by searching and reviewing ideas and requests to enhance a product or service. Take a look at ideas others have posted, and add a comment, vote, or subscribe to updates on them if they matter to you. If you can't find what you are looking for,

Post your ideas
  1. Post an idea.

  2. Get feedback from the IBM team and other customers to refine your idea.

  3. Follow the idea through the IBM Ideas process.


Specific links you will want to bookmark for future use

Welcome to the IBM Ideas Portal (https://www.ibm.com/ideas) - Use this site to find out additional information and details about the IBM Ideas process and statuses.

IBM Unified Ideas Portal (https://ideas.ibm.com) - Use this site to view all of your ideas, create new ideas for any IBM product, or search for ideas across all of IBM.

ideasibm@us.ibm.com - Use this email to suggest enhancements to the Ideas process or request help from IBM for submitting your Ideas.

Status Delivered
Workspace IBM i
Categories Db2 for i
Created by Guest
Created on Feb 15, 2019

Requesting IBM i Service to return message text

Requesting IBM i Service to return message file text.

values MESSAGE_FILE_TEXT(
MESSAGE_NUMBER,
MESSAGE_FILE,
MESSAGE_FILE_LIBRARY,
MESSAGE_DATA,
'*FIRST')
would return the first level message text. For a comparison see
RTVMSG MSGID(&MSGID)
MSGF(&MSGLIB/&MSGFILE)
MSGDTA(&MSGDATA)
MSG(&FIRST)


Use Case:

BRMS:

BRMS has all the data, but the formatted text, in their log files. I would like to expand this SQL statement to retrieve the formatted message text.

with T1 as(
select
lgmid as Message_number,
lgjob as Job_name,
lguser as Job_user,
lgjnbr as Job_number,
lgjnbr concat '/' concat trim(lguser) concat '/' concat trim(lgjob) as qualified_job_name,
lgsev as message_severity,
lgpgm as program_name,
lgarea as log_type,
lgfile as message_file,
lglib as message_file_library,
lgcgnam as control_group_name,
timestamp_format(right(digits(19000000 + lgdate), 8) concat ' ' concat digits(lgtime), 'YYYYMMDD HH24MISS') as message_timestamp,
lgmdta as message_data
from qusrbrm.qa1alg)
select *
from T1
where log_type = '*BKU'
and message_number in('BRM1049', 'BRM10A1')
order by message_timestamp desc
;


Idea priority Medium
  • Guest
    Reply
    |
    Apr 23, 2020

    The QSYS2.MESSAGE_FILE_DATA view was delivered in May 2019 with SF99703 Level 15

  • Guest
    Reply
    |
    Feb 18, 2019

    Another approach would be to use the BRMS function "Send BRMS Messages to Additional Message Queue" and then use the SQl service QSYS2.MESSAGE_QUEUE_INFO. You can read more abouth the BRMS function in developerworks under:
    "IBM Backup, Recovery and Media Services (BRMS) for i >‎ Installation and Maintenance >‎ Send BRMS Messages to Additional Message Queue "

    1. Create and message queue
    2. Configure the BRMS utility to send BRMS messages to that message queue
    3. Use QSYS2.MESSAGE_QUEUE_INFO view the messages

    Will try to link to the "Send BRMS Messages to Additional Message Queue", but for some reasons I rarely get the links to developerworks to actually works when I paste them:
    https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/IBM%20Backup%2C%20Recovery%20and%20Media%20Services%20%28BRMS%29%20for%20i/page/Send%20BRMS%20Messages%20to%20Additional%20Message%20Queue