IBM SC34-5764-01 Server User Manual


 
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 .
a) word1 =
b) word2 =
c) word3 =
ANSWERS
1.
a) word1 = Experience
b) word2 = is
c) word3 = the best teacher.
2.
a) word1 = Experience
b) word2 = is
c) word3 = the
d) word4 = best
e) word5 = teacher.
Manipulating Data
Chapter 7. Manipulating Data 79