A fix is available
APAR status
Closed as program error.
Error description
When converting a JSON floating point number that contains an E+ the following error is seen when format : decimal is specified in the JSON schema : DFHPI1007 JSON to data transformation failed because of incorrect input (UNEXPECTED_CONTENT) and if the number contains an E- then then following error is seen : DFHPI1009 JSON to data transformation failed. A conversion error (INVALID_CHARACTER) The JSON schema includes the following : "data1": { "description": "Test Data", "type": "number" }, "data2": { "description": "Test Data", "type": "number", "format": "decimal" data1 is mapped by DFHJS2LS to a COMP-2 datatype in COBOL - i.e. data1 COMP-2 SYNC data2 is mapped by DFHJS2LS to a COMP-3 datatype in COBOL - i.e. data2 PIC S9(15)V9(3) COMP-3 The following input results in the DFHPI1007 error : JSON data: { "data1" : 1.0, "data2" : 1.0E+2 } and the following input results in the DFHPI1009 error : JSON data: { "data1" : 1.0, "data2" : 1.0E-2 } These inputs work as expected : JSON data: { "data1" : 1.0E-2, "data2" : 1.0 } JSON data: { "data1" : 1.0, "data2" : 1.0E2 }
Local fix
Use java parsing rather than native parsing - i.e. start a JVMSERVER and use that for parsing JSON
Problem summary
**************************************************************** * USERS AFFECTED: All CICS Users. * **************************************************************** * PROBLEM DESCRIPTION: JSON floating point numbers that * * contain a E+ or E- are not converted * * when format decimal is specified in * * the JSON schema. * **************************************************************** Attempting to convert a floating point number that contains E+ when using non Java JSON parsing will result in a DFHPI1007 / UNEXPECTED_CONTENT error message. Attempting to convert a floating point number that contains E- when using non Java JSON parsing will result in a DFHPI1009 / INVALID_CHARACTER error message. Attempting to convert a floating point number that contains E (an implicit E+) works as expected. Keywords: msgDFHPI1007 msgDFHPI1009 PI1007 PI1009
Problem conclusion
DFHPICV has been updated so that a floating point number that contains either E+ or E- when using non Java JSON parsing is parsed correctly.
Temporary fix
Comments
APAR Information
APAR number
PH60505
Reported component name
CICS TS Z/OS V6
Reported component ID
5655YA100
Reported release
400
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2024-03-22
Closed date
2024-05-03
Last modified date
2024-06-03
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
UI96756
Modules/Macros
DFHECEI DFHEPAS DFHPICC DFHPIII DFHPIJG DFHPIJP1 DFHPITS
Fix information
Fixed component name
CICS TS Z/OS V6
Fixed component ID
5655YA100
Applicable component levels
R400 PSY UI96756
UP24/05/04 P F405
Fix is available
Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSGMGV","label":"CICS Transaction Server"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.1","Line of Business":{"code":"LOB70","label":"Z TPS"}}]
Document Information
Modified date:
03 June 2024