DBCS (Double-Byte Character Set Functions)
The following are all part of DBCS processing functions.
DBADJUST DBRIGHT DBUNBRACKET
DBBRACKET DBRLEFT DBVALIDATE
DBCENTER DBRRIGHT DBWIDTH
DBCJUSTIFY DBTODBCS
DBLEFT DBTOSBCS
DELSTR (Delete String)
 DELSTR(string,n
,length
) 
returns string after deleting the substring that begins at the nth character and is of length characters. If you
omit length,oriflengthis greater than the number of characters from nto the end of string, the function
deletes the rest of string (including the nth character). The length must be a positive whole number or
zero. The nmust be a positive whole number. If nis greater than the length of string, the function returns
string unchanged.
Here are some examples:
DELSTR('abcd',3) -> 'ab'
DELSTR('abcde',3,2) -> 'abe'
DELSTR('abcde',6) -> 'abcde'
DELWORD (Delete Word)
 DELWORD(string,n
,length
) 
returns string after deleting the substring that starts at the nth word and is of length blank-delimited words.
If you omit length,oriflengthis greater than the number of words from nto the end of string, the function
deletes the remaining words in string (including the nth word). The length must be a positive whole
number or zero. The nmust be a positive whole number. If nis greater than the number of words in string,
the function returns string unchanged. The string deleted includes any blanks following the final word
involved but none of the blanks preceding the first word involved.
Here are some examples:
DELWORD('Now is the time',2,2) -> 'Now time'
DELWORD('Now is the time ',3) -> 'Now is '
DELWORD('Now is the time',5) -> 'Now is the time'
DELWORD('Now is the time',3,1) -> 'Now is time'
DIGITS
 DIGITS() 
returns the current setting of NUMERIC DIGITS. See the NUMERIC instruction on page “Purpose” on
page 150 for more information.
Here is an example:
DIGITS() -> 9 /* by default */
D2C (Decimal to Character)
 D2C(wholenumber
,n
) 
returns a string, in character format, that represents wholenumber, a decimal number, converted to binary.
Functions
Chapter 14. Functions 183