This portal is to open public enhancement requests against IBM Z Software products. 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).
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:
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 an idea.
Get feedback from the IBM team and other customers to refine your idea.
Follow the idea through the IBM Ideas process.
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.
See this idea on ideas.ibm.com
We have a use case where we sometimes need to return a decimal value of 0.00 in a JSON, and sometimes need to return without that value(suppressed).
We do not believe that we currently are able to do that.
We move low-values to a decimal variable, and json generate with a suppress on low-values.
The current result is that the program terminates with a 0C7 error during the json generate statement, because the variable contains low-values.
We believe that should be handled by the suppress, no matter the compiler options used.
Example program:
CBL NSYMBOL(NATIONAL)
ID DIVISION.
PROGRAM-ID. Example.
ENVIRONMENT DIVISION.
CONFIGURATION SECTION.
SPECIAL-NAMES.
DECIMAL-POINT IS COMMA.
DATA DIVISION.
*-----------------------------------------------------------------
WORKING-STORAGE SECTION.
*-----------------------------------------------------------------
01 JSON-UTF NATIONAL PIC N(2048) VALUE SPACES.
01 JSON-len PIC S9(9).
01 JSON-X PIC X(2048).
01 event.
05 account.
10 account-balance1 pic s9(15)v9(2) usage display.
10 account-balance2 pic s9(15)v9(2) usage display.
*-----------------------------------------------------------------
PROCEDURE DIVISION.
*-----------------------------------------------------------------
move zero to account-balance1
move low-values to account-balance2(1:)
JSON GENERATE JSON-UTF FROM event COUNT IN JSON-LEN
SUPPRESS when low-values
END-JSON
MOVE FUNCTION DISPLAY-OF (JSON-UTF(1:JSON-LEN))
TO JSON-X
display JSON-X
goback
.
*-----------------------------------------------------------------
Idea priority | Low |
By clicking the "Post Comment" or "Submit Idea" button, you are agreeing to the IBM Ideas Portal Terms of Use.
Do not place IBM confidential, company confidential, or personal information into any field.
This Idea is being accepted and will be updated once put into plan.
This Idea is being investigated further.