http://server:port/qsys.lib/library.lib/db.file/member.mbr
where,
The following order is used to determine the content type of data stored in a database file:
*USE authority to the database file and library. The
library containing the database file must be available through the configured
include libraries.
The first part of the header keyword value indicates the source physical file that contains the member containing the header information. Optionally, the source physical file can be pre-pended with the library containing the source physical file. The slash separating the library and src-pf should be escaped (e.g., / = %2F). The library specified must be accessible through the configured include libraries. If the library is not specified then the header source physical file must reside in the same library as the PF/LF that is being processed.
The second part specifies which member contains the header data. The data contained in the member is assumed to be plain text unless one of the following two methods is used to indicate the member contains HTML data:
.HTML is appended to the member name
Samples:
The first part of the footer keyword value indicates the source physical file that contains the member containing the footer information. Optionally, the source physical file can be pre-pended with the library containing the source physical file. The slash separating the library and src-pf should be escaped (e.g., / = %2F). The library specified must be accessible through the configured include libraries. If the library is not specified then the footer source physical file must reside in the same library as the PF/LF that is being processed.
The second part specifies which member contains the footer data. The data contained in the member is assumed to be plain text unless one of the following two methods is used to indicate the member contains HTML data:
.HTML is appended to the member name
The footer should not include either the <HTML> or
<BODY> tag.
Samples:
If the HEADINGS keyword is not specified then by default column headings are included if the data being returned is plain text. Note that column headings can only be included when the content type is plain text.
Samples:
Hexadecimal characters can be included in the key by enclosing the hex characters as follows: X'chars' or x'chars' (e.g., X'00010A' which is converted to the 8-bit binary values 0,1,10 which equals 266 decimal). Hex characters can be used to search files that have numeric keys, although care must be taken to ensure the hex value matches the storage method used for the numeric field. Both character and hexadecimal values can be included in the key value.
The key value is combined with the KEYOPT keyword when processing the file. If the file is keyed and no key is specified then all records are returned.
Samples:
The value specified is case insensitive. If a key option is not specified and a key is specified then the key option defaults to EQ.
Samples:
See the KEY keyword parameter description for more information on using key values. The key 2 value's length does not have to match the first key value's length. The key 2 value is combined with the KEYOPT2 keyword when processing the file.
Samples:
KEYOPT is set to LE or LT, KEYOPT2 must be either:
KEYOPT is set to GE or GT, KEYOPT2 must be either:
The value specified is case insensitive. KEYOPT2 must be specified if the KEY2 keyword parameter is specified.
Samples:
Optionally, a prefix can be added before the column(s) and a suffix can be added after the column(s). The prefix and suffix are text strings contained in single quotes that are outputted before and after the column(s) respectively. To insert a single quote specify two single quotes (e.g., a prefix of '''' would output one single quote). The column prefix and suffix text is never escaped. In most cases, column headings should be turned off when using prefixes and suffixes.
If multiple columns are to be returned then each column number must be separated by commas. A range of columns can be specified by separating two column numbers with a hyphen.
The SPACING keyword can be used to control spacing between columns.
Valid column numbers range from 1 to 256. Columns can be returned more than once. If COLUMNS is not specified then all columns will be returned in the file's order.
Samples:
Column spacing is specified by a column number and a spacing value that are separated by a period. Spacing for multiple columns must be separated by commas. A spacing value for a range of columns can be specified by separating two column numbers with a hyphen followed by the period and the spacing value.
Valid column numbers range from 1 to 256. Valid spacing values are from 0 to 256. If SPACING is not specified for a column then there will be no spaces before the first column and one space between each additional column. If multiple values are given for a single column the last once encountered will be used.
Samples:
Multiple columns can be specified by separating each column by commas. A range of columns can be specified by separating two column numbers with a hyphen.
Valid column numbers range from 1 to 256. This keyword effects only character fields.
If the content type is not plain text then by default none of the fields are escaped and specifying the NOESCAPE keyword will instruct the server to escape the specified values.
Samples:
CTLCHAR(*PRTCTL) option on the CPYSPLF command.
Valid values are:
If the URL indicates the database file contains HTML spooled file data then either option can be specified and the data is returned as is from the database file. Non-text content types will return the spooled file data with the printer control characters.
The following keywords are ignored when this keyword is used:
Data can also be returned directly from spooled files.
Samples:
The format of the PAGES keyword value is the starting page number followed by a hyphen and then the ending page number. If the starting page number is greater then the total number of spooled file pages then no spooled file data is returned. The ending page number may be set to the special value *LAST. The starting and ending page values are inclusive.
If PAGES is not specified then all of the pages will be returned.
Samples:
The member specified is case insensitive. This keyword is ignored if the member was previously found in the URL. If there is not a member specified in the URL then the first member is returned.
Samples:
Samples:
Samples:
Samples are provided to demonstrate usage of keywords when retrieving data from database files.
The HTML "wrapper" tags are included or excluded based on the content type of the document/database file and the content type of the optional header. The HTML "wrapper" tags consist of:
<HTML>,</HTML>
<HEAD>,<TITLE>,</TITLE>,</HEAD>
<BODY>,</BODY>
Data read from a database file is always converted. The retrieval of binary data (e.g., image) from a database file is not supported.
http://system/qsys.lib/library.lib/database.file
http://system/qsys.lib/library.lib/database.file.html
http://system/qsys.lib/library.lib/keyed.file?KEY(AA)+KEYOPT(GT)+KEY2(AD)+KEYOPT2(LE)
http://system/qsys.lib/library.lib/keyed.file?COLUMNS(3,1)+SPACING(3.10)+HEADINGS(0)+HEADER(SRCPF+HEADER.HTML)+FOOTER(SRCPF+FOOTER)+KEY(X'0000001F')