Getting Started with TRANSACT (32247-90007)
Chapter 8 137
Special Topics
Subprograms
Subprograms
Transact allows you to call other programs from within Transact. We have already seen an
example of calling a Report/V program from Transact. You can also call another Transact
Program, Inform report, or a program written in another language such as COBOL or
Pascal.
The CALL verb is used to call another Transact, Report/V, or Inform program. The PROC
verb is used to call a program written in another language.
Calling a Transact program is easily demonstrated by taking the example program listed
in Figure 8-9 and dividing it into a main program which does all the database access and a
subprogram that takes care of the array processing. The following two programs result.