PN5_50513


Patch Number

Ticket Number

Change type

5_50513

768518

Patch

1. Description

Case Independence: The 'not equal' operator (# <> >< NE) fails when comparing a variable with the concatenation of a literal and a variable

The issue could be seen by running the following test:

set/export JBCEMULATE=caseinsensitive

0001 PROGRAM not_equal_test
0002 firstname = 'daniel'
0003 lastname = 'klein'
0004
0005 * Test literal:variable
0006 name = 'danielklein'
0007 IF 'daniel':lastname = name THEN CRT '*equal*' ELSE CRT 'not equal'
0008 IF 'daniel':lastname # name THEN CRT 'not equal' ELSE CRT '*equal*'
0009
0010 * Test variable:literal
0011 name = 'kleindaniel'
0012 IF lastname:'daniel' = name THEN CRT '*equal*' ELSE CRT 'not equal'
0013 IF lastname:'daniel' # name THEN CRT 'not equal' ELSE CRT '*equal*'

2. Previous Release Behavior

Output from test program:

*equal*
not equal
*equal*
not equal

3. Current Release Behavior

Output from test program:

*equal*
*equal*
*equal*
*equal*