DBCS Symbol Validation

DBCS symbols are valid only if you comply with the following rules:
  • The DBCS portion of the symbol must be an even number of bytes in length
  • DBCS alphanumeric and special symbols are regarded as different to their corresponding SBCS characters. Only the SBCS characters are recognized by REXX in numbers, instruction keywords, or operators
  • DBCS characters cannot be used as special characters in REXX
  • SO and SI cannot be contiguous
  • Nesting of SO or SI is not permitted
  • SO and SI must be paired
  • No part of a symbol consisting of DBCS characters may contain a DBCS blank.
  • Each part of a symbol consisting of DBCS characters must be bracketed with SO and SI.
These examples show some possible misuses:
<.A.BC>        ->  Incorrect because of odd byte length
<.A.B><.C>     ->  Incorrect contiguous SO/SI
<>             ->  Incorrect contiguous SO/SI (null DBCS symbol)
<.A<.B>.C>     ->  Incorrectly nested SO/SI
<.A.B.C        ->  Incorrect because SO/SI not paired
<.A. .B>       ->  Incorrect because contains blank
'. A<.B><.C>   ->  Incorrect symbol

Reference Reference

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/dfhrx000499.html