REVERSE
REVERSE(
string
)
returns
string
, swapped end for end.
Here are some examples:
REVERSE('ABc.')
->
'.cBA'
REVERSE('XYZ ')
->
' ZYX'
RIGHT
RIGHT(
string
,
length
,
pad
)
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
length
must be a positive whole number or zero.
Here are some examples:
RIGHT('abc
d',8)
->
'
abc
d'
RIGHT('abc def',5)
->
'c def'
RIGHT('12',5,'0')
->
'00012'
SIGN
SIGN(
number
)
returns a number that indicates the sign of
number
. The
number
is first rounded according to standard
REXX rules, just as though the operation
0
had been carried out. Returns
-1
if
number
is less than
0
; returns
0
if it is
0
; and returns
1
if it is greater than
0
.
Here are some examples:
SIGN('12.3')
->
1
SIGN(' -0.307')
->
-1
SIGN(0.0)
->
0
SOURCELINE
SOURCELINE(
n
)
returns the line number of the final line in the program if you omit
n
, or returns the
n
th line in the program
if you specify
n
. If specified,
n
must be a positive whole number and must not exceed the number of the
final line in the program.
Here are some examples:
SOURCELINE()
->
10
SOURCELINE(1)
->
'/* This is a 10-line REXX program */'
SPACE
SPACE(
string
,
n
,
pad
)
returns the blank-delimited words in
string
with
n pad
characters between each word. If you specify
n
, it
must be a positive whole number or zero. If it is
0
, all blanks are removed. Leading and trailing blanks are
always removed. The default for
n
is
1
, and the default
pad
character is a blank.
Functions
Chapter 14. Functions
191
Содержание SC34-5764-01
Страница 1: ...CICS Transaction Server for VSE ESA REXX Guide SC34 5764 01...
Страница 2: ......
Страница 3: ...CICS Transaction Server for VSE ESA REXX Guide SC34 5764 01...
Страница 22: ...xx CICS TS for VSE ESA REXX Guide...
Страница 23: ...Part 1 User s Guide Copyright IBM Corp 1992 2009 1...
Страница 24: ...2 CICS TS for VSE ESA REXX Guide...
Страница 40: ...18 CICS TS for VSE ESA REXX Guide...
Страница 54: ...Using Variables and Expressions 32 CICS TS for VSE ESA REXX Guide...
Страница 106: ...84 CICS TS for VSE ESA REXX Guide...
Страница 110: ...88 CICS TS for VSE ESA REXX Guide...
Страница 122: ...100 CICS TS for VSE ESA REXX Guide...
Страница 123: ...Part 2 Reference Copyright IBM Corp 1992 2009 101...
Страница 124: ...102 CICS TS for VSE ESA REXX Guide...
Страница 130: ...Introduction 108 CICS TS for VSE ESA REXX Guide...
Страница 152: ...REXX General Concepts 130 CICS TS for VSE ESA REXX Guide...
Страница 224: ...Functions 202 CICS TS for VSE ESA REXX Guide...
Страница 252: ...230 CICS TS for VSE ESA REXX Guide...
Страница 278: ...256 CICS TS for VSE ESA REXX Guide...
Страница 312: ...DB2 Interface 290 CICS TS for VSE ESA REXX Guide...
Страница 316: ...High level Client Server Support 294 CICS TS for VSE ESA REXX Guide...
Страница 340: ...318 CICS TS for VSE ESA REXX Guide...
Страница 344: ...for execs Commands 322 CICS TS for VSE ESA REXX Guide...
Страница 399: ...Part 3 Appendixes Copyright IBM Corp 1992 2009 377...
Страница 400: ...378 CICS TS for VSE ESA REXX Guide...
Страница 438: ...416 CICS TS for VSE ESA REXX Guide...
Страница 442: ...System Definition Customization Administration 420 CICS TS for VSE ESA REXX Guide...
Страница 446: ...Security 424 CICS TS for VSE ESA REXX Guide...
Страница 448: ...426 CICS TS for VSE ESA REXX Guide...
Страница 464: ...442 CICS TS for VSE ESA REXX Guide...
Страница 466: ...444 CICS TS for VSE ESA REXX Guide...
Страница 468: ...446 CICS TS for VSE ESA REXX Guide...
Страница 476: ...454 CICS TS for VSE ESA REXX Guide...
Страница 478: ...456 CICS TS for VSE ESA REXX Guide...
Страница 479: ......
Страница 480: ...SC34 5764 01...
Страница 481: ...Spine information CICS TS for VSE ESA REXX Guide...