home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 1: Collection A
/
17Bit_Collection_A.iso
/
files
/
1068.dms
/
1068.adf
/
MailMgr
/
mailmgrq.doc
< prev
Wrap
Text File
|
1988-07-25
|
7KB
|
132 lines
Query Instructions
The Query program will allow you to produce a report based on
your selection, sorting and formatting specifications. Upon
entry, you will be presented with a data dictionary and string
gadgets for entering your record selection criteria, sort
sequence and output report format.
The data dictionary presents you with a list of data names that
can be used to display or print values contained in the database.
The Select string gadget will allow you to specify some selection
criteria to be used to determine which database entries will be
included in you output display or report. For example,
SELECT:
(Last = "Carter" or "Smith") and City = "Detroit"
specifies that the database is to be searched for all persons
with the name of Carter or Smith who live in Detroit. Remember
that in order to enter data into a string gadget you must first
position the pointer within the gadget and depress the left
button on the mouse. Note that the Select parameters contain
parentheses to prevent ambiguities. If there is a possibility
that the key word or phrase you are looking for contains
occurrences with both upper and lower case letters, you must
check for both, e.g., "Carter" or "carter". Another method is to
use the wild character, e.g., "?arter".
The Sort string gadget will allow you to specify the sequence in
which the selected records are to be displayed or printed. For
example,
SORT:
Last
specifies that the selected database entries are to be sorted in
Last Name sequence. Only one sort field may be entered.
The Report string gadget will allow you to specify the format of
the output display or report. For example,
REPORT:
Last, col 22, First, col 60, Ph
specifies that the Last Name, First Name and Phone for the
selected records are to be displayed. Further, it is specified
that the First Name is to be displayed beginning in column 22 and
that Phone is to be displayed beginning in column 60. The Report
specification parameters may be very simple or very complex
depending upon the skill of the user. Upon entering the Query
program, you will find that the Report string gadget already
contains some parameters. These parameters have been designed to
print 3 1/2" by 15/16" address labels for the selected records.
You may use these parameters or enter your customized report
specifications. To erase the content on the Report string
gadget, first select the gadget and then depress Right AMIGA - X.
To undo (cancel) the last editing change to the string, depress
Right AMIGA - Q. The Report specification parameters can be
classified as either describing "when to do it" or "what to do".
When To Do It:
page_top - specifies that subsequent functions are to be
executed at the top each printed page or screen.
page_bottom - specifies that subsequent functions are to
the executed at the bottom of each printed page or
screen.
report_top - specifies that subsequent functions are to
be executed only at the beginning of the output report.
report_bottom - specifies that subsequent functions are
to executed only at the end of the report.
top(<data-name>) - specifies that subsequent functions
are to be executed after there has been a change in the
content of <data-name>. For example, top(City).
Normally, the specified data-name will be the same as
the sort sequence.
bottom(<data-name>) - specifies that subsequent
functions are to be executed before there is a change in
the content of data-name. For example, bottom(State).
detail - specifies that the subsequent functions are to
be executed for each selected database entry.
What To Do:
print - specifies that all output is to be routed to the
printer. Default values for tm, bm and bod are set to
4, 8, and 54 respectively.
display - specifies that all output is to be routed to
the screen. "Display" is the output default. Default
values for tm, bm and bod are set to 0, 0, and 22
respectively.
tm nn - sets the top margin for the output display or
report to the value specified by nn.
bm nn - sets the bottom margin for the output display or
report to the value specified by nn.
bod nn - sets the body of the output display or report
to the value specified by nn. The sum of tm, bm and bod
must equal the desired page length.
<data-name> - causes the specified data name to be
printed or displayed. For example, "City" is a
data-name.
"literal" - causes the specified literal to be printed
or displayed. For example, "The result is:" is a
literal.
trim<data-name> - caused the specified data name to be
printed or displayed after all trailing spaces have been
eliminated.
total(<data-name>) - specifies that the summed value of
<data-name> is to be printed or displayed. An numeric
data item from the dictionary or a numeric literal must
be substituted for <data-name>.
spacer nn - causes nn spaces to be inserted between
output data items. The default is 1.
col nn - causes the