Chapter 1-6: Customizing Your Application
The CALL Statement
The CALL statement allows you to invoke non-APPX subroutines when you want to pass and share information between APPX and a subroutine. For example, you could call a special calculator function written in assembly language that is available on your computer system. You pass the appropriate field values to the called routine, and receive back the result of the calculation (by passing the result field with Share? specified as 'Y' for "yes").
On some computer systems, unique identification of a subroutine name may require more than the 22 characters allowed in the CALL statement. To accommodate this situation, you can define an alphanumeric work field in the data dictionary and set its value to the complete program name. Then, when you specify the CALL statement, you enter the work field name as the program to be called. This approach also minimizes future maintenance by reducing the number of changes you need to make if a revision to the name is required.
There is an indicator that you set when you specify the CALL statement to indicate whether the called routine is to remain resident in memory after it completes execution, so that it can be re-executed by a subsequent CALL without having to read it from disk a second time.
APPX Application Design Manual (01/13/03)
© 2003 by APPX Software, Inc. All rights reserved