
LINK Statement
Statements
4–30
058057 Tandem Computers Incorporated
If your query involves aggregates, you can eliminate these invalid results by including
the WHERE option with the aggregate. For example, suppose that you want to use the
aggregate COUNT to count the occurrences of no-num, a two-character field that is
declared alphanumeric (PIC XX or TYPE CHARACTER 2) in the record description. If
you specify the aggregate as follows:
COUNT ( no-num WHERE no-num <> BLANKS)
ENFORM does not count any occurrences of no-num that contain null values because
ENFORM treats null values as blanks in alphanumeric fields.
If no-num was declared numeric (PIC 99) in the record description, you could specify
the aggregate as follows:
COUNT ( no-num WHERE no-num <> 0)
ENFORM does not count any occurrences of no-num that contain null values because
ENFORM treats null values in numeric fields as zeros.
If no-num was declared to be a two-byte binary numeric field (PIC 99 USAGE IS
COMP or TYPE BINARY 16) in the record description, you could eliminate an invalid
result by specifying:
COUNT ( no-num WHERE no-num <> 8224)
ENFORM does not count any occurrences of no-num that contain null values because
ENFORM treats null values in two-character binary fields as decimal 8224.
Содержание ENFORM 058057
Страница 5: ...New and Changed Information iv 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 6: ...New and Changed Information 058057 Tandem Computers Incorporated v...
Страница 18: ...Preface xvi 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 19: ...Preface 058057 Tandem Computers Incorporated xvii...
Страница 21: ...Notation Conventions xviii 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 25: ...ENFORM Terminology Introduction 1 4 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 121: ...TITLE Statement Statements 4 50 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 227: ...ENFORM Procedures ENFORM Syntax Summary A 16 058057 Tandem Computers Incorporated This page left intentionally blank...
Страница 269: ...Glossary Glossary 4 058057 Tandem Computers Incorporated This page left intentionally blank...