A fix is available
APAR status
Closed as program error.
Error description
The problem occurs if some items are suppressed during XML GENERATE, and the element for the parent group has only attributes, but neither any elements nor any content after the SUPPRESS. In that case, the parent element is "empty" and gets incorrectly suppressed even if it still has some un-suppressed attributes remaining. FIXCAT keyword: COB0501T/K COB0502T/K COB0601T/K
Local fix
N/A
Problem summary
**************************************************************** * USERS AFFECTED: Users of Enterprise COBOL V5 and V6 * * compiling and running programs that contain * * XML GENERATE statements with the SUPPRESS * * phrase where some items of the generated * * XML document are attributes. * * * **************************************************************** * PROBLEM DESCRIPTION: Incorrect output at runtime: The * * problem occurs if some items are * * suppressed during XML GENERATE, and * * the element for the parent group has * * only attributes, but neither any * * elements nor any content after the * * SUPPRESS. In that case, the parent * * element is "empty" and gets * * incorrectly suppressed even if it * * still has some un-suppressed * * attributes remaining. * * * **************************************************************** * RECOMMENDATION: Apply the provided PTF * **************************************************************** The suppress logic of XML GENERATE was incorrect since it suppressed a parent group solely based on remaining elements or content, and without taking into account any remaining attributes in the group.
Problem conclusion
The suppress logic in XML GENERATE has been corrected. The current behavior is that if only attributes remain in the element for the group after any suppression, these un-suppressed attributes will be generated in the output. In other words, an XML parent element will be generated if there is at least one element, attribute, or content item remaining.
Temporary fix
Comments
APAR Information
APAR number
PI71169
Reported component name
ENT COBOL FOR Z
Reported component ID
5655W3200
Reported release
790
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2016-10-24
Closed date
2016-11-16
Last modified date
2016-12-12
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
IGZXLPKA
Fix information
Fixed component name
LE ENT COBOL LI
Fixed component ID
568819812
Applicable component levels
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":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSCVR7X","label":"Runtime"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Line of Business":{"code":"","label":""}}]
Document Information
Modified date:
14 December 2020