DBRLEFT

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')         ->    ''

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/dfhrxch.html