You are on page 1of 3

5770QU1 V7R2M0 140418 IBM Query for IBM i ALCAS 7/08/16 8:40:40 Page 1

Query . . . . . . . . . . . . . . . . . FULL813
Library . . . . . . . . . . . . . . . V_SSMITH
Query text . . . . . . . . . . . . . . Build MGRORD0 w/ orders to pay
Query CCSID . . . . . . . . . . . . . . 65535
Query language id . . . . . . . . . . . ENU
Query country or region id . . . . . . US
Collating sequence . . . . . . . . . . Hexadecimal

Processing options
Use rounding . . . . . . . . . . . . Yes (default)
Ignore decimal data errors . . . . . No (default)
Ignore substitution warnings . . . . Yes
Use collating for all compares . . . Yes

Selected files
ID File Library Member Record Format
A VCO3 V_TEMPFILE *FIRST VCO3
B VCO4 V_TEMPFILE *FIRST VCO4

Join tests
Type of join . . . . . . . . . . . . . Unmatched records with primary file
Field Test Field
A.ODORD# EQ B.ODORD#

Result fields
Name Expression Column Heading Len Dec
BATCH 'VCENTER '
CPO a.tcpo01 PAYON 17 5
ZIP2 a.zip||' '

Select record tests


AND/OR Field Test Value (Field, Numbers, or 'Characters')
A.ZIP NLIKE '147%'
AND A.ZIP RANGE '00001' '99999'
IBM Query for IBM i 7/08/16 8:40:40 Page 2

Ordering of selected fields


Field Sort Ascending/ Break Field
Name Priority Descending Level Text
A.CO# '00004'
BATCH
A.ODORD# Order #. . . . . . . . . . . . . . . . .
CPO
ZIP2

Report column formatting and summary functions


Summary functions: 1-Total, 2-Average, 3-Minimum, 4-Maximum, 5-Count Overrides
Field Summary Column Dec Null Dec Numeric
Name Functions Spacing Column Headings Len Pos Cap Len Pos Editing
A.CO# 0 CO# 5
BATCH 2 BATCH 10
A.ODORD# 2 Order # 8
--------
CPO 2 PAYON 17 5
ZIP2 2 ZIP2 7

Selected output attributes


Output type . . . . . . . . . . . . . . Database file
Form of output . . . . . . . . . . . . Detail
Line wrapping . . . . . . . . . . . . . No

Database file output


File . . . . . . . . . . . . . . . . . MGRORD0
Library . . . . . . . . . . . . . . . ALFILES
Member . . . . . . . . . . . . . . . . *FILE
Data in file . . . . . . . . . . . . . Add to member
For a new file:
Authority . . . . . . . . . . . . . . *ALL
Text about
the file . . . . . . . . . . . . .
Print definition . . . . . . . . . . . No
IBM Query for IBM i 7/08/16 8:40:40 Page 3

Output file record format


Output record length . . . . . . . . . 47
Field list:
Field Begin Len Dec Null Data Type CCSID Text
CO# 1 5 Character 65535 '00004'
BATCH 6 10 Character 65535 'VCENTER '
ODORD# 16 8 Character 37 Order #. . . . . . . . . . . . . . . . .
CPO 24 17 5 Zoned decimal 0 a.tcpo01
ZIP2 41 7 Character 65535 a.zip||' '

* * * * * E N D O F Q U E R Y P R I N T * * * * *

You might also like