z/OS TSO/E REXX Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


DBRLEFT

z/OS TSO/E REXX Reference
SA32-0972-00

Read syntax diagramSkip visual syntax diagram
>>-DBRLEFT(string,length--+---------+--)-----------------------><
                          '-,option-'      

returns the remainder from the DBLEFT function of string. If length is greater than the length of string, returns a null string.

The option controls the counting rule. Y counts SO and SI within mixed strings as one each. N does not count the SO and SI and is the default.

Here are some EBCDIC examples:
DBRLEFT('ab<.A.B>',4)             ->    '<.B>'
DBRLEFT('ab<.A.B>',3)             ->    '<.A.B>'
DBRLEFT('ab<.A.B>',4,'Y')         ->    '<.A.B>'
DBRLEFT('ab<.A.B>',3,'Y')         ->    '<.A.B>'
DBRLEFT('ab<.A.B>',8)             ->    ''
DBRLEFT('ab<.A.B>',9,'Y')         ->    ''

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014