Create and Select Field Definitions
Definition. . . . . . : NAMEADDRR
Dictionary. . . . . . : SYSDIC
Position to . . . . . . . __________ Field, sequence (0-99999)
Type sequence numbers (0-99999), (and Field), press Enter.
Type field, press F6 to create.
Seq
Field
End
Seq
Field
End
Seq Field
End
10
LASTNAME
Now press F6. You will complete the description of the
LASTNAME
field definition (as well as naming
and describing the remainder of the field definitions) from the next display.
11. Complete the
LASTNAME
field description with its type, size, and any other descriptors, according to the
table shown below. Then name and describe the remainder of the field definitions.
Field Name
Field Type
Size
Text
LASTNAME
Character
15
Last name
FIRSTNAME
Character
10
First name
ADDRESS1
Character
20
Address line 1
ADDRESS2
Character
20
Address line 2
CITY
Character
15
City
STATE
Character
2
State
ZIP
Character
9
Zip code
AMOUNT
Numeric, 2 decimal positions
6
Amount
Create Field Definitions
Type information, press Enter to create.
Field type (size) . . : 1=Character (1-32766)
2=Numeric (1-31, decimal positions 0-31)
3=DBCS (4-32766, mixed; 1-16383, graphic)
4=Date/Time (no size)
More options. . . . . : Y=Yes
-------Field--------- Dec More
Name
Type Size
Pos Opt
Text
LASTNAME
1
15
__
_
Last name
FIRSTNAME
1
10
__
_
First name
ADDRESS1
1
20
__
_
Address line 1
ADDRESS2
1
20
__
_
Address line 2
CITY
1
15
__
_
City
STATE
1
2
__
_
State
ZIP
1
9
__
_
Zip code
AMOUNT
2
6
2
_
Amount
12. When you have completed specifying the field characteristics, press the Enter key. The Create Field
Definitions display is shown again, and your fields have been created.
Appendix B. Practice exercise for Query for iSeries query
201
Содержание ISERIES SC41-5210-04
Страница 1: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Страница 2: ......
Страница 3: ...iSeries Query for iSeries Use Version 5 SC41 5210 04 ERserver ...
Страница 12: ...x Query for iSeries Use V5R2 ...
Страница 14: ...2 Query for iSeries Use V5R2 ...
Страница 18: ...Figure 3 Major Tasks on the Query Menu and the Work with Queries Display 6 Query for iSeries Use V5R2 ...
Страница 32: ...20 Query for iSeries Use V5R2 ...
Страница 38: ...26 Query for iSeries Use V5R2 ...
Страница 44: ...32 Query for iSeries Use V5R2 ...
Страница 116: ...104 Query for iSeries Use V5R2 ...
Страница 122: ...110 Query for iSeries Use V5R2 ...
Страница 146: ...134 Query for iSeries Use V5R2 ...
Страница 150: ...138 Query for iSeries Use V5R2 ...
Страница 174: ...162 Query for iSeries Use V5R2 ...
Страница 178: ...166 Query for iSeries Use V5R2 ...
Страница 196: ...184 Query for iSeries Use V5R2 ...
Страница 198: ...186 Query for iSeries Use V5R2 ...
Страница 204: ...192 Query for iSeries Use V5R2 ...
Страница 205: ...Part 4 Appendixes Copyright IBM Corp 2000 2002 193 ...
Страница 206: ...194 Query for iSeries Use V5R2 ...
Страница 210: ...198 Query for iSeries Use V5R2 ...
Страница 242: ...230 Query for iSeries Use V5R2 ...
Страница 256: ...244 Query for iSeries Use V5R2 ...
Страница 270: ...258 Query for iSeries Use V5R2 ...
Страница 272: ...260 Query for iSeries Use V5R2 ...
Страница 292: ...280 Query for iSeries Use V5R2 ...
Страница 293: ......
Страница 294: ... Printed in U S A SC41 5210 04 ...