APAR status
Closed as program error.
Error description
In IBM Developer for z Systems (IDz) v14.1.4, a variable in a COBOL source whose value contains accented or DBCS characters may result in error for generating a test case in zunit if the length of variable exceeds the defined variable length. Here is an example of the variable definition: 01 TMP-TEXT Pic x(20) value 'à tester en Français'. And here is the error while generating zunit test case: CobolLanguageImportHelper.getParameterLanugageElements(): Possible reasons for failure: 1. Syntax errors were found in the source. If the file is from the workspace, check the 'Remote Error List' view for the list of errors. 2. nocopylib_ECHO3.cbl is expected to be a complete COBOL program, based on its file extension.You can change the file extension support by going into the "More COBOL options" tab of the COBOL importer preferences page (Window -> Preferences -> Importer -> COBOL). nocopylib_ECHO3.cbl(12) IGYGR1056-E "VALUE" literal "'àtester en Français'" exceeded the length specified in the "PICTURE" definition. The literal was truncated to the "PICTURE" definition length.
Local fix
In Remote Systems view, right click on the data set with the zunit members and select "Properties". Click on the "Mapping" of the Properties panel and in "Local code page" select "Other" and replace "UTF-8" to "Cp1252" or the local code page of your environment (for example for Japanese environment, use MS932 or Cp943). Save the changes and attempt to generate zunit test case.
Problem summary
A variable in a COBOL source(UTF-8) whose value contains accented or DBCS characters may result in error for generating a test case in zUnit if the length of variable exceeds the defined variable length.
Problem conclusion
zUnit has been corrected so that zUnit test case editor would open for the source(UTF-8) contains accented or DBCS chars.
Temporary fix
Comments
APAR Information
APAR number
PH06666
Reported component name
DEV FOR Z SYS
Reported component ID
5724T0700
Reported release
E10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt / Xsystem
Submitted date
2018-12-19
Closed date
2019-06-14
Last modified date
2019-06-14
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
DEV FOR Z SYS
Fixed component ID
5724T0700
Applicable component levels
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSJK49","label":"IBM Developer for z Systems"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"E10","Edition":"","Line of Business":{"code":"LOB35","label":"Mainframe SW"}}]
Document Information
Modified date:
14 June 2019