EasyManua.ls Logo

IBM TSO/E REXX - Chapter 9. Diagnosing Problems Within an Exec

IBM TSO/E REXX
242 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
1. quote = 'Experience is the best teacher.'
PARSE VAR quote word1 word2 word3
a) word1 =
b) word2 =
c) word3 =
2.
quote = 'Experience is the best teacher.'
PARSE VAR quote word1 word2 word3 word4 word5 word6
a) word1 =
b) word2 =
c) word3 =
d) word4 =
e) word5 =
f) word6 =
3.
PARSE VALUE 'Experience is the best teacher.' WITH word1 word2 . . word3
a) word1 =
b) word2 =
c) word3 =
4.
PARSE VALUE 'Experience is the best teacher.' WITH v1 5 v2
....+....1....+....2....+....3.
a) v1 =
b) v2 =
5.
quote = 'Experience is the best teacher.'
....+....1....+....2....+....3.
PARSE VAR quote v1 v2 15 v3 3 v4
a) v1 =
b) v2 =
c) v3 =
d) v4 =
6.
quote = 'Experience is the best teacher.'
....+....1....+....2....+....3.
PARSE UPPER VAR quote 15 v1 +16 =12 v2 +2 1 v3 +10
a) v1 =
b) v2 =
c) v3 =
7.
quote = 'Experience is the best teacher.'
....+....1....+....2....+....3.
PARSE VAR quote 1 v1 +11 v2 +6 v3 -4 v4
a) v1 =
b) v2 =
c) v3 =
d) v4 =
8.
first = 7
quote = 'Experience is the best teacher.'
....+....1....+....2....+....3.
PARSE VAR quote 1 v1 =(first) v2 +6 v3
a) v1 =
b) v2 =
c) v3 =
9.
quote1 = 'Knowledge is power.'
quote2 = 'Ignorance is bliss.'
quote3 = 'Experience is the best teacher.'
CALL sub1 quote1, quote2, quote3
EXIT
sub1:
PARSE ARG word1..,word2..,word3 .
Parsing Data
Chapter 7. Manipulating Data 93

Table of Contents

Related product manuals