Summary
FRM115 - Writing Reports
Important Observations
- The CALL and SUBMIT commands will execute a function. When a function is called, the calling program is not accessible until after the called program ends.
- EXCHANGE can only be used to pass information to a function. It can be passed from a form or from a function to another function.
- Once a function has been enabled for Full RDMLX, it cannot be changed back to an RDML Function.
- Reporting commands can only be used in LANSA Functions. They cannot be used in Forms.
- LANSA provides a very simple set of reporting commands that can be combined to create very powerful reports.
Tips & Techniques
- In order for the report to print, LPT1 needs to be mapped to a particular printer for all NT-based systems. Therefore the following command needs to be issued from the command line:
NET USE LPT1: <PATH>\<printer name>
For example:
NET USE LPT1: \\NT1\HP
What You Should Know
- How to CALL a function from a form.
- How to SUBMIT a function to batch.
- How to EXCHANGE information between LANSA programs.
- How to enable a function for RDMLX.
- What some of the differences are between RDML and RDMLX functions.
- You should be familiar with the following reporting commands:
- DEF_LINE
- DEF_HEAD
- DEF_FOOT
- DEF_BREAK
- DEF_REPORT
- SKIP
- SPACE
- ENDPRINT
- KEEP_xxxxx (KEEP_AVG, KEEP_COUNT, KEEP_MAX, KEEP_MIN, KEEP_TOTAL)