SUBWORD
SUBWORD(
string
,
n
,
length
)
returns the substring of
string
that starts at the
n
th word, and is up to
length
blank-delimited words. The
n
must be a positive whole number. If you omit
length
, it defaults to the number of remaining words in
string
.
The returned string never has leading or trailing blanks, but includes all blanks between the selected
words.
Here are some examples:
SUBWORD('Now is the
time',2,2)
->
'is the'
SUBWORD('Now is the
time',3)
->
'the
time'
SUBWORD('Now is the
time',5)
->
''
SYMBOL
SYMBOL(
name
)
returns the state of the symbol named by
name
. Returns
BAD
if
name
is not a valid REXX symbol. Returns
VAR
if it is the name of a variable (that is, a symbol that has been assigned a value). Otherwise returns
LIT
, indicating that it is either a constant symbol or a symbol that has not yet been assigned a value (that
is, a literal).
As with symbols in REXX expressions, lowercase characters in
name
are translated to uppercase and
substitution in a compound name occurs if possible.
Note:
You should specify
name
as a literal string (or it should be derived from an expression) to prevent
substitution before it is passed to the function.
Here are some examples:
/* following: Drop A.3;
J=3 */
SYMBOL('J')
->
'VAR'
SYMBOL(J)
->
'LIT' /* has tested "3"
*/
SYMBOL('a.j')
->
'LIT' /* has tested A.3
*/
SYMBOL(2)
->
'LIT' /* a constant symbol
*/
SYMBOL('*')
->
'BAD' /* not a valid symbol */
TIME
TIME(
option
)
returns the local time in the 24-hour clock format: hh:mm:ss (hours, minutes, and seconds) by default, for
example,
04:41:37
.
You can use the following
option
s to obtain alternative formats, or to gain access to the elapsed-time
clock. (Only the capitalized and highlighted letter is needed; all characters following it are ignored.)
Civil
returns the time in Civil format: hh:mmxx. The hours may take the values
1
through
12
, and the
minutes the values
00
through
59
. The minutes are followed immediately by the letters
am
or
pm
.
This distinguishes times in the morning (12 midnight through 11:59 a.m.—appearing as
12:00am
through
11:59am
) from noon and afternoon (12 noon through 11:59 p.m.—appearing as
12:00pm
through
11:59pm
). The hour has no leading zero. The minute field shows the current minute (rather
than the nearest minute) for consistency with other TIME results.
Elapsed
returns sssssssss.uuuuuu, the number of seconds.microseconds since the elapsed-time clock
Functions
Chapter 14. Functions
193
Содержание 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...