Length, Reverse, Space – IBM SC34-5764-01 User Manual
Page 424: Strip, Substr and delstr, Subword and delword, Symbol
RIGHT('a<>',2)
->
' a'
CENTER('<.A.B>',10,'<.E>') ->
'<.E.E.E.E.A.B.E.E.E.E>'
CENTER('<.A.B>',11,'<.E>') ->
'<.E.E.E.E.A.B.E.E.E.E.E>'
CENTER('<.A.B>',10,'e')
->
'eeee<.A.B>eeee'
Applying the character concatenation for padding and character extraction from a string rules.
LENGTH
In EBCDIC:
LENGTH('<.A.B><.C.D><>')
->
4
Applying the counting characters rule.
REVERSE
In EBCDIC:
REVERSE('<.A.B><.C.D><>')
->
'<><.D.C><.B.A>'
Applying the character extraction from a string and character concatenation rules.
SPACE
In EBCDIC:
SPACE('a<.A.B. .C.D>',1)
->
'a<.A.B> <.C.D>'
SPACE('a<.A><><. .C.D>',1,'x')
->
'a<.A>x<.C.D>'
SPACE('a<.A><. .C.D>',1,'<.E>') ->
'a<.A.E.C.D>'
Applying the word extraction from a string and character concatenation rules.
STRIP
In EBCDIC:
STRIP('<><.A><.B><.A><>',,'<.A>')
->
'<.B>'
Applying the character extraction from a string and character concatenation rules.
SUBSTR and DELSTR
In EBCDIC:
SUBSTR('<><.A><><.B><.C.D>',1,2)
->
'<.A><><.B>'
DELSTR('<><.A><><.B><.C.D>',1,2)
->
'<><.C.D>'
SUBSTR('<.A><><.B><.C.D>',2,2)
->
'<.B><.C>'
DELSTR('<.A><><.B><.C.D>',2,2)
->
'<.A><><.D>'
SUBSTR('<.A.B><>',1,2)
->
'<.A.B>'
SUBSTR('<.A.B><>',1)
->
'<.A.B><>'
Applying the character extraction from a string and character concatenation rules.
SUBWORD and DELWORD
In EBCDIC:
SUBWORD('<><. .A. . .B><.C. .D>',1,2) ->
'<.A. . .B><.C>'
DELWORD('<><. .A. . .B><.C. .D>',1,2) ->
'<><. .D>'
SUBWORD('<><.A. . .B><.C. .D>',1,2)
->
'<.A. . .B><.C>'
DELWORD('<><.A. . .B><.C. .D>',1,2)
->
'<><.D>'
SUBWORD('<.A. .B><.C><> <.D>',1,2)
->
'<.A. .B><.C>'
DELWORD('<.A. .B><.C><> <.D>',1,2)
->
'<.D>'
Applying the word extraction from a string and character concatenation rules.
SYMBOL
In EBCDIC:
402
CICS TS for VSE/ESA: REXX Guide