Dbright; Dbrleft; Dbrright - IBM SC34-5764-01 Manual

Cics transaction server for vse/esa
Table of Contents

Advertisement

padded with pad characters (or truncated) on the right as needed. The default pad character is a blank.
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:
DBLEFT('ab<.A.B>',4)
DBLEFT('ab<.A.B>',3)
DBLEFT('ab<.A.B>',4,'x','Y')
DBLEFT('ab<.A.B>',3,'x','Y')
DBLEFT('ab<.A.B>',8,'<.P>')
DBLEFT('ab<.A.B>',9,'<.P>')
DBLEFT('ab<.A.B>',8,'<.P>','Y') ->
DBLEFT('ab<.A.B>',9,'<.P>','Y') ->

DBRIGHT

DBRIGHT(string,length
returns a string of length length containing the rightmost length characters of string. The string returned is
padded with pad characters (or truncated) on the left as needed. The default pad character is a blank.
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:
DBRIGHT('ab<.A.B>',4)
DBRIGHT('ab<.A.B>',3)
DBRIGHT('ab<.A.B>',5,'x','Y')
DBRIGHT('ab<.A.B>',10,'x','Y')
DBRIGHT('ab<.A.B>',8,'<.P>')
DBRIGHT('ab<.A.B>',9,'<.P>')
DBRIGHT('ab<.A.B>',8,'<.P>','Y') ->
DBRIGHT('ab<.A.B>',11,'<.P>','Y') ->
DBRIGHT('ab<.A.B>',12,'<.P>','Y') ->

DBRLEFT

DBRLEFT(string,length
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)
DBRLEFT('ab<.A.B>',3)
DBRLEFT('ab<.A.B>',4,'Y')
DBRLEFT('ab<.A.B>',3,'Y')
DBRLEFT('ab<.A.B>',8)
DBRLEFT('ab<.A.B>',9,'Y')

DBRRIGHT

406
CICS TS for VSE/ESA: REXX Guide
->
'ab<.A>'
->
'ab '
->
'abxx'
->
'abx'
->
'ab<.A.B.P>'
->
'ab<.A.B.P> '
'ab<.A.B>'
'ab<.A.B> '
,
pad
,option
->
'<.A.B>'
->
' <.B>'
->
'x<.B>'
->
'xxab<.A.B>'
->
'<.P>ab<.A.B>'
->
' <.P>ab<.A.B>'
'ab<.A.B>'
'
ab<.A.B>'
'<.P>ab<.A.B>'
)
,option
->
'<.B>'
->
'<.A.B>'
->
'<.A.B>'
->
'<.A.B>'
->
''
->
''
)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Rexx

Table of Contents