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 Languages - RPG
Created by Guest
Created on Sep 20, 2016

Create XML in RPGLE, BIF like %XML-CREATE()

In the Current world, IBM i is interacting with other systems by using the XML format messages which can be easily understood by different systems and humans.

IBM has recently provided XML-INTO and XML-SAX built in functions to read the xml and to populate the data into RPG variables directly. This is obviously has been greatest advantage for the developers and to the business both interms of the flexibility to the developers and the cost incurred for development.

But, This will give a thought that, It would be better to have a Built in Function to Prepare/Create XML directly from RPG. Although, we have some of the third party tools available, creating schema & Populating data. It would be good to have an IBM Built in function which can accept a Data Structure and create XML.


Use Case:

IBM i is interacting with the different servers and using XML as the most common message used between different servers.

IBM i Developers have to look some third party procedures to create XML in RPG, Create Pre-defined XML schema and create an XML.

But, this would be beneficial to both IBM i Developers and Business to have a Built in Function to create XML directly from RPGLE.


Idea priority High
  • Guest
    Reply
    |
    Nov 15, 2019

    IBM believes that the request described has been solved and is available with the enhancement that provides the new DATA-GEN operation code.

    This enhancement is available with the following PTFs:

    - 7.3 TGTRLS(*CURRENT) compiler - SI71534
    - 7.4 TGTRLS(*CURRENT) compiler - SI71536
    - 7.4 TGTRLS(*PRV) compiler - SI71538
    - 7.3 Runtime - SI71535
    - 7.4 Runtime - SI71537

    The following additional PTFs update the H, QCBLLESRC, and QRPGLESRC files in QOAR with include file QRNDTAGEN, which defines the parameter passed to a generator program or procedure for DATA-GEN.

    They also provide some sample generators in the QOAR/SAMPLE2 file. The XMLGEN source member contains a generator for XML which you can use, or which you can copy to another source file and modifiy as needed.

    - 7.3 Files in QOAR - SI71517
    - 7.4 Files in QOAR - SI71518

    See the "What's new since 7.3" or "What's new since 7.4" sections of the ILE RPG Reference. (The inforomation is the same in both manuals.)

    https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzasd/rpgrelv7r3post.htm
    https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_74/rzasd/rpgrelv7r4post.htm

    If you want to create your own generator for DATA-GEN, also see the "What's new since 7.3" section of the Open Access: RPG Reference.

    https://www.ibm.com/support/knowledgecenter/ssw_ibm_i_73/rzasm/roarelv7r3post.htm

  • Guest
    Reply
    |
    Aug 19, 2019

    IBM agrees with the request and a solution appears to be desirable and feasible. IBM intends to provide a solution. However, IBM's plans may change and no commitment is made that a solution will be provided.

  • Guest
    Reply
    |
    Jan 3, 2019

    IBM will use this request as input to planning but no commitment is made or implied. This request will be updated in the future if IBM implements it. IBM will use votes and comments from others in the community to help prioritize this request.

    If RPG implements this, it would be similar to DATA-INTO,where the the details of the XML (or other output format) would be left to a data-generator. The generator would get the subfield names (mixed-case similar to the *DCLCASE mechanism for PCML), plus human-readable values, and be free to format the data in any way.

  • Guest
    Reply
    |
    Aug 25, 2017

    IBM has received the requirement and is evaluating it. IBM will provide a response after evaluation is complete.

  • Guest
    Reply
    |
    Jul 11, 2017

    The CAAC reviewed this RFE and recommends that IBM not spend resources on this RFE. Rather, there is existing support using SQL XML functionality.

    Background: The COMMON Americas Advisory Council (CAAC) members have a broad range of experience in working with small and medium-sized IBM i customers. CAAC has a key role in working with IBM i development to help assess the value and impact of individual RFEs on the broader IBM i community, and has therefore reviewed your RFE.

    For more information about CAAC, see www.common.org/caac

    For more details about CAAC's role with RFEs, see http://www.ibmsystemsmag.com/Blogs/i-Can/May-2017/COMMON-Americas-Advisory-Council-%28CAAC%29-and-RFEs/

    Dawn May - CAAC Program Manager

  • Guest
    Reply
    |
    Jan 11, 2017

    If RPG implements this, it would likely involve something similar to the Open Access names-values support where the details of the XML (or other output format) would be left to a handler. The handler would get the subfield names (mixed-case similar to the *DCLCASE mechanism for PCML) and human-readable values and be free to format the data however it wanted to.

  • Guest
    Reply
    |
    Jan 10, 2017

    Personally I think an op-code rather than a BIF is a better idea. But the problem that remains is the same as for the XML generation support in COBOL. There is no obvious way to have it output attributes, just elements and I'm not convinced it is worth the effort if that is the case.

  • Guest
    Reply
    |
    Sep 21, 2016

    Creating a new RFE based on Community RFE #94771 in product IBM i.