One of the most exotic usages of external files is the open query file,
which has nothing to do with query, the utility. An open query file can
combine data from many different, related files, but unlike a join file,
it can also summarize, reformat and perform mathematical operations
upon the data. As always, your program receives its input in the form of
a record. The advantage of the open query file is that a great deal of
programming can again be "pushed out" of the program, and given to the
system to handle. This type of technique can be useful in a "division of
labor" situation; for example, experienced AS/400 programmers can
create the definitions that other, less-experienced AS/400 programers
will use.
http://www.mcpressonline.com/operating-systems/ibm-i-os400-i5os/as400-basics-database-files.html
The Open Query File command. OPNQRYF, is a lot like creating a temporary logical file that disappears when the job is done. It not only resequences the data but can easily select a subset of the records. It resembles Structured Query Language (SQL) in structure. With it you can join records from different files, group records together and even calculate new field values.
http://www.texas400.com/SAopenqryfile.html
list of the major functions supplied by OPNQRYF
http://www.mcpressonline.com/operating-systems/ibm-i-os400-i5os/as400-basics-database-files.html
The Open Query File command. OPNQRYF, is a lot like creating a temporary logical file that disappears when the job is done. It not only resequences the data but can easily select a subset of the records. It resembles Structured Query Language (SQL) in structure. With it you can join records from different files, group records together and even calculate new field values.
http://www.texas400.com/SAopenqryfile.html
list of the major functions supplied by OPNQRYF
- Dynamic record selection
- Dynamic keyed sequence access path
- Dynamic keyed sequence access path over a join
- Dynamic join
- Handling missing records in secondary join files
- Unique-key processing
- Mapped field definitions
- Group processing
- Final total-only processing
- Improving performance
- Open Query Identifier (ID)
- Sort sequence processing
No comments:
Post a Comment