always appears below and to the right of the list to tell you where you are in the list.
More...
means that
there are more items after, and possibly before, the items currently shown.
Bottom
means that you are at
the end of the list, but there may be more items before those currently shown.) Use F19 (Next group) to
reposition the list at the beginning of the next logical group of fields (the cursor can be anywhere when
you use F19). (The first group is selected fields, if any, and the second group is sort fields, if any. If there
are not selected fields, then the fields are grouped by file, and within each file grouping, the fields are
listed in the order in which they appear in the file definition.)
You can specify the length and number of decimal positions for a numeric result field by filling in the
Len
and
Dec
prompts on this display, or you can have Query determine the length and decimal positions for
you by leaving the prompts blank.
You can specify a column heading for any result field. If you leave the prompt blank, the result field name
is used as the column heading for the result-field definition.
Query for iSeries result field name
Since Query result field names are similar to database field names, create them according to the following:
v
Start the name with an alphabetic character (A through Z, $, #, or @) and use no more than 9
alphanumeric characters (A through Z, 0 through 9, $, #, @, or _) for the remaining characters. Do not
use blanks within the name.
Note:
Use A-Z or 1-9 if this query is sent to other systems or used in a multilingual environment.
v
Do not use any names from the list on the lower part of the display or the names of other result fields.
Enter an expression that creates the desired value for your result field.
Query for iSeries expressions
In Query for iSeries, an
expression
is a representation of a value with field names, constants, functions,
or keywords appearing alone or in combination with operators. It can be either a numeric, character
(SBCS or DBCS), date, time or timestamp expression:
v
A
numeric expression
assigns numbers or performs an operation (calculation) on them. Numeric
expressions can contain the following operators:
+ (Addition)
− (Subtraction)
* (Multiplication)
/ (Division)
v
A
character expression
assigns characters or performs an operation on them. Character expressions
can contain the following operators or functions:
|| (Concatenation operator)
SUBSTR (Substring function)
VALUE (Value function)
DIGITS (Digits function)
Note:
See “CCSID and result field expressions in Query for iSeries” on page 252 to see how CCSIDs
are handled for the concatenation symbol.
v
A
date expression
performs an operation on a date. Date expressions can contain the following
operators or functions:
+ (Addition)
− (Subtraction)
CHAR
DATE
58
Query for iSeries Use V5R2
Summary of Contents for @server iSeries
Page 1: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Page 2: ......
Page 3: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Page 12: ...x Query for iSeries Use V5R2 ...
Page 14: ...2 Query for iSeries Use V5R2 ...
Page 32: ...20 Query for iSeries Use V5R2 ...
Page 38: ...26 Query for iSeries Use V5R2 ...
Page 44: ...32 Query for iSeries Use V5R2 ...
Page 116: ...104 Query for iSeries Use V5R2 ...
Page 122: ...110 Query for iSeries Use V5R2 ...
Page 146: ...134 Query for iSeries Use V5R2 ...
Page 150: ...138 Query for iSeries Use V5R2 ...
Page 174: ...162 Query for iSeries Use V5R2 ...
Page 178: ...166 Query for iSeries Use V5R2 ...
Page 196: ...184 Query for iSeries Use V5R2 ...
Page 198: ...186 Query for iSeries Use V5R2 ...
Page 204: ...192 Query for iSeries Use V5R2 ...
Page 205: ...Part 4 Appendixes Copyright IBM Corp 2000 2002 193 ...
Page 206: ...194 Query for iSeries Use V5R2 ...
Page 210: ...198 Query for iSeries Use V5R2 ...
Page 242: ...230 Query for iSeries Use V5R2 ...
Page 256: ...244 Query for iSeries Use V5R2 ...
Page 270: ...258 Query for iSeries Use V5R2 ...
Page 272: ...260 Query for iSeries Use V5R2 ...
Page 292: ...280 Query for iSeries Use V5R2 ...
Page 293: ......
Page 294: ... Printed in U S A SC41 5210 04 ...