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 Not under consideration
Workspace IBM i
Categories Languages - RPG
Created by Guest
Created on Mar 17, 2023

Allow SND-MSG to send a message to a subfile message file.

Allow the SND-MSG command to send a message to a subfile message file. This would allow the developer to use SND-MSG to send a message to a subfile when an error is encountered in a validation routine. It could also be used to send a confirmation message to a message file too.

Idea priority Medium
  • Guest
    Reply
    |
    Mar 30, 2023
    Thank you for confirming that SND-MSG can already be used to send a message to a message subfile.

    IBM does not intend to provide any change related to this Idea, so it is being closed.

    As discussed in the comments for this Idea, the existing function of SND-MSG can already be used to send a message to a messsage subfile by specifying (or defaulting) the type as *INFO and using %TARGET to specify the procedure that opened the display file.

    - IBM Power Systems Development
  • Guest
    Reply
    |
    Mar 29, 2023


    Barbara,

    I tested with this a little more, and I think I got it to work as I wanted it to. I had to change it to a *INFO type, and also use %TARGET(program-name) where program-name is the *PROC keyword of the System Data Structure. Once I made that change, it seemed to work how I was envisioning it would.

    I guess this can be closed now.

    Thank you for your help.

    Doug

  • Guest
    Reply
    |
    Mar 21, 2023

    Hi Doug. What happens if you change the *ESCAPE for the SND-MSG to *INFO? (Or you could also just remove the *ESCAPE, since it defaults to *INFO.)

    If you didn't already have %TARGET coded for the *ESCAPE version, you'd also have to code %TARGET(*CALLER) to get the info message sent to your caller. (*INFO defaults to sending the message to the current procedure, while *ESCAPE defaults to sending the message to the caller of the current procedure.)

    - Barbara Morris

  • Guest
    Reply
    |
    Mar 21, 2023

    I did some more research on this and here is what I would need with this Idea.

    I made a Proof of Concept using the SND-MSG. It worked as described in the article URL you sent.

    Then, I tried it in a program I am working on that was working fine in terms of error message handling when checking the validity of a user entered date. I added the SND-MSG with the parameters I had been using, thinking it would work, but it didn't work as I expected. It did send the message to the subfile. However, the program then crashed, which did not happen before I used SND-MSG.

    It looks like that the SND-MSG is sending the message as an *ESCAPE message, but the process that I am using is sending the message as a *DIAG. Once I replaced the message handling with the original *DIAG, it worked as expected and did not crash.

    So, for this Idea, I would like to request that the SND-MSG Op-Code also be allowed to work with *DIAG message types.

    Thank you,

    Doug


  • Guest
    Reply
    |
    Mar 21, 2023
    Thanks for replying, Doug. I'm glad you were able to get it to work.

    The 7.3 manual already has information about the SND-MSG opcode. https://www.ibm.com/docs/en/ssw_ibm_i_73/rzasd/zzsndmsg.htm. I am also able to find "SND-MSG" in the 7.3 PDF https://www.ibm.com/docs/en/ssw_ibm_i_73/pdf/sc092508.pdf.

    Is there a particular place that you were looking in the manual where you didn't find SND-MSG?

    - IBM Power Systems Development
  • Guest
    Reply
    |
    Mar 21, 2023

    I am sorry about that. I read the article and made a test program, and it worked. I am running V7R3 and the support I was describing is there, I was not aware of it. I just looked at the ILE RPG Manual and scanned for SND-MSG and did not find it. Can you use this idea to update the manual instead?

    Thank you,

    Doug


  • Guest
    Reply
    |
    Mar 20, 2023
    IBM needs more information to further assess your Idea.

    The following IT Jungle article discusses how SND-MSG can be used with message subfiles.
    "Guru: The SND-MSG Op Code And Message Subfiles" (https://www.itjungle.com/2022/09/12/guru-the-snd-msg-op-code-and-message-subfiles/)

    Could you provide more explanation about what additional support you are requesting for SND-MSG?

    - IBM Power Systems Development
  • Guest
    Reply
    |
    Mar 20, 2023

    Happy enough to see this as a different opcode if it simplifies things rather than extending the functionality of SEND-MSG itself.