Files

Japanese Character Handling

Test Cases

Test ID Description
J-N001 PIC N full-width field length (10 chars = 20 bytes)
J-N002 Move between PIC N fields
J-N003 N field with numeric data
J-N004 N field comparison
J-N005 N field with mixed content
J-K001 Half-width katakana in PIC X
J-K002 Katakana field move
J-K003 Empty X field
J-K004 STRING with X fields
J-K005 UNSTRING with X fields
J-D001 Shift-JIS 5C problem character (backslash)
J-D002 7C problem character (pipe)
J-D003 Mixed 5C/7C characters
J-D004 Comparison with 5C/7C
J-S001 INSPECT TALLYING with X data
J-S002 INSPECT REPLACING with X data
J-S003 INSPECT CONVERTING with X data

Features Covered

  • PIC N (national) character fields for full-width text
  • PIC X for half-width katakana
  • Shift-JIS ambiguous byte handling (0x5C, 0x7C)
  • INSPECT with TALLYING, REPLACING, CONVERTING
  • STRING and UNSTRING operations

Expected Results

All 17 tests should display PASS.