DBTODBCS

Read syntax diagramSkip visual syntax diagram
>>-DBTODBCS--(--string--)--------------------------------------><

converts all passed, valid SBCS characters (including the SBCS blank) within string to the corresponding DBCS equivalents. Other single-byte codes and all DBCS characters are not changed. In EBCDIC, SO and SI brackets are added and removed where appropriate.
Here are some EBCDIC examples:
DBTODBCS('Rexx 1988')      ->    '<.R.e.x.x. .1.9.8.8>'
DBTODBCS('<.A> <.B>')      ->    '<.A. .B>'
Note: In these examples, the .x is the DBCS character corresponding to an SBCS x.


x2dbcs.html | Timestamp icon Last updated: Monday, 5 June 2017