Report Writer Exercise
Objectives:
- To explore the program structure and various commands of Ingres Report
Writer.
- To produce printed output form the Library database.
Compiling externally written report code
- Save this report writer code in a file called
books.rw file
- Compile the report into the
database using the command
sreport dbname books.rw
on a command
line. You do not need to leave Ingres/Menu to do this. Simply start another
window to gt a command line.
- Back out of the RBF - Report Catalog and reinvoke it. This will refresh the
available reports. You will see that booksinprint has been added to the
list.
- Run the report sending the output to the default printer.
Compare the output with the books.rw source code. Can you see what is
being done?
Comparing books.rw with your borrower_loans report
- Scroll down to the borrower_loans report you created in the previous
exercise.
- Use the Utilities option, then the Archive option to generate
a file called loans.rw
- Compare loans.rw with books.rw. Can you
explain how the Report writer code handles the use of User Prompts? Can you see
any restriction on how it deals with Multi-tables?
Continue with this trainer
This WWW material is copyright De Montfort
University and may only be reproduced or used if this copyright notice is
included.
This page is maintained by John Skelton. Comments or
suggestions for improving this material can be emailed to jas@dmu.ac.uk) and will be gratefully received.