Getting Started with TRANSACT (32247-90007)

28 Chapter1
Getting Started
Reporting from Multiple Datasets
Figure 1-16 shows the report produced by this program.
Figure 1-16. Report from Two Datasets
Now let’s create a program to retrieve all orders that are open, i.e., all orders that have
order-status equal to “o”. Also, let’s print out the details of each order. The operation
requires the use of a master and two detail sets: customer, orderhead, and orderline.
CUST-NO> 1
NAME: ORDER-NO: ORDER-STATUS:
Able-1 Answering po1001 o
Able-1 Answering po1002 o
Able-1 Answering po1003 o
Able-1 Answering po1004 o
Able-1 Answering po1005 c
5 RECORDS FOUND
EXIT/RESTART(E/R)?>