append
Opens a report output file in append mode.
Available in:
Apps (win) |
Apps (char) |
Reportwriter |
RPC |
Standalone PL |
|
|
X |
|
|
Syntax
void append([file-name])
string file-name
Description
file-name | (optional) specifies the name of the file to open.
If you specify an empty string, append() sets the output file to
STDOUT. If you do not specify a file-name
(with any necessary specifications),
the function sets the output file to run-file.OUT.
|
Example
Sends the report output to different locations based on a
department identifier, DEPTNUM:
{
.
.
if (DEPTNUM == 42) {
close();
append("dept42.out");
}
else {
close();
append("other.out");
}
.
.
}