Download Unify DataServer/ELS Reference

Transcript
When the dt control break occurs, the message changes to indicate that shipped
orders are being printed. RPT then skips to the next page. The following are the
sections of the report script described so far:
sort <dt> shipped
^= **/**/**, vendor.Number,
po.Number, Line_Number
before report
set pg_title to '*** orders not yet shipped ***’
.
.
.
header
print pg_title in column 1
.
.
.
before dt
if shipped ^= **/**/** then
begin
set pg_title to '*** Orders already shipped ***’
page
end
RPT provides additional string operations. Suppose you want to print string variables,
report fields, or constants next to each other without spaces between them. Because
RPT normally prints a default space between fields, you can use the direct
concatenation operator (+), to suppress the default space between fields.
Assuming you have report fields for state and Zip codes, the following print statement
positions the state code, leaves two spaces, then positions the zip code in column 11:
print State + ' ' + Zip_Code in column 11
The direct concatenation operator does not remove trailing blanks from a field.
However, this can be inconvenient when you are printing addresses, and you want to
eliminate spaces between parts of the address.
For example, in an address, you usually print the city, a comma, a space, the state
code, two spaces, and the Zip code, as follows:
Sacramento, CA 95825
RPT–Report processor
481