Fixes are available
APAR status
Closed as program error.
Error description
On ODM 8.7.1 zRES, a COBOL date field defined as DATE-FIELD PIC X(08) DATE FORMAT YYYYXXXX, leading to a java.util.Date field in the BOM throws the below exception when the field is blank at execution time: Aug 30, 2016 12:23:42 PM com.ibm.rules.hbr.runtime. RulesExecutionManager execute SEVERE: GBRZP6002E A RawDataRuleExecutionException occurred during rule execution Exception occurred when converting date- debut-antecedent ilog.rules.res.session.rawdata.internal.runtime. ConversionException: Exception occurred when converting date- debut-antecedent ... at ilog.rules.res.session.rawdata.internal.runtime.V3Pipe. rawToJava(V3Pipe.java:79) at ilog.rules.res.session.rawdata.internal.runtime. RawDataRuleServiceImpl.execute(RawDataRuleServiceImpl.java:74) at com.ibm.rules.hbr.runtime.RulesExecutionManager.execute( RulesExecutionManager.java:190) Caused by: java.text.ParseException: Unparseable date: "" at java.text.DateFormat.parse(DateFormat.java:369) at ilog.rules.res.session.rawdata.internal.converter. StringDateConverter.convertToTarget(StringDateConverter.java:31) at fr.axa.iard.tfa.model.marshaller.AntecedentReader.read( AntecedentReader.java:42) ... 5 more
Local fix
Either implement a default custom type converter as described in the below documentation chapter: http://www.ibm.com/support/knowledgecenter/SSQP76_8.7.1/com.ibm. odm.dserver.rules.designer.author/cobol_topics/tsk_bom_custom_ types_define.html or provide a "default date" in the COBOL data such as 01/01/0001 or 99/99/9999 for instance
Problem summary
When cobol date field is empty or an incorrect date format is specified in the BOM. The following exception is thrown when the copybook is generated from the xom: com.ibm.rules.hbr.runtime. RulesExecutionManager execute SEVERE: GBRZP6002E A RawDataRuleExecutionException occurred during rule execution Exception occurred when converting date- debut-antecedent ilog.rules.res.session.rawdata.internal.runtime. ConversionException: Exception occurred when converting date- debut-antecedent.
Problem conclusion
A meaningful exception is thrown and the support of DateConverters has been improved.
Temporary fix
Implement a custom type converter as decribed in: http://www.ibm.com/support/knowledgecenter/SSQP76_8.7.1/com.ibm. odm.dserver.rules.designer.author/cobol_topics/tsk_bom_custom_ty pes_define.html or provide a "default date" in the COBOL data such as 01/01/0001 or 99/99/9999 for instance.
Comments
APAR Information
APAR number
RS02498
Reported component name
WS DECISION CTR
Reported component ID
5725B6900
Reported release
880
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2016-09-08
Closed date
2017-01-30
Last modified date
2017-01-30
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Modules/Macros
999
Fix information
Fixed component name
WS DECISION CTR
Fixed component ID
5725B6900
Applicable component levels
R880 PSY
UP
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSQP76","label":"IBM Operational Decision Manager"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"880","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
03 November 2021