Certain long descriptor strings, typically 24-30 bytes, can contain any mix of characters, including imbedded blanks. Since the REXX word structure is based on blank separators, maintaining the original image requires two translation steps. The first translates all imbedded blanks to X'FE' characters when returned in a REXX variable. The next step is a user effort to reverse that back to blanks for display purposes or similar reasons. Please note that as long as REXX word boundaries need to be maintained, the second translation step should not be done.
The following fields are subject to the dual translation:
The following REXX function restores imbedded blanks:
NORMAL_FIELD = TRANSLATE(INCOMING_FIELD,' ','FE'X)
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|