| Special File Handling |
|
| This
functionality is a +PxPlus
Exclusive |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Formats | OPEN
(chan[,fileopt])
"*VIEW*;viewname[;options]
[...]"
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description | The
*VIEW* interface allows a View
to be used to define the contents of a logical file for
use by an application program. It allows the
program to access the contents of a View as if it were a
standard read-only file.
Opening the View To open the contents of a View, specify the file name *VIEW* followed by the name of the View you wish to access, separated by semi-colons.
When opened, the system will process the View definition and return its contents in a memory file using the specified channel number. By default, the memory file will have an external key based on the key defined for the View. This can be changed by specifying the KNO= parameter in the OPEN statement. Also, by default there is no iolist, however, you can specify the IOL=* parameter to use the View's internal iolist, or specify an iolist definition such as IOL=IOLIST Acct$,CustName$,Balance.
The contents of the returned memory file is a static data set for the specified View, that is, the file is a snapshot of the View results at the time the file was opened. No changes or updates to the original data sources are reflected in the file as it is processed. Closing the channel will free the memory file and free its contents. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||