Chapter 4-3: Specifying Statements Cover Page The FAIL (or FT) ParameterMiscellaneous Operands

A Non-APPX Program Name


There are two ILF statements that can invoke a non-APPX program name. Use RUN to execute complete external programs. Use CALL to call external subroutines. Most operating systems support dynamic link libraries. If the subroutine you wish to call is part of a dynamic link library, you can invoke it directly in APPX by using the CALL statement. If a subroutine must be statically linked, you will have to create a custom APPX engine in order to invoke it. Contact your system administrator for details regarding this procedure.

When you invoke external programs and subroutines with the RUN and CALL statements, you specify the exact program name that you would enter if you were communicating directly with the native operating system on a command line. If you do not have enough spaces to specify the name completely, you can define a work field in the data dictionary and set its value to the complete program name. In turn, specify the work field name in the RUN or CALL statement to achieve the desired effect.

Another reason to consider using a work field definition is ease of maintenance. You may RUN or CALL the same program or routine in several places in your application environment. If for any reason you need to change the name of a program and had specified it directly in a RUN or CALL statement, you must change each statement where the name is specified. If you define a work field in the data dictionary, you only have one change to make if the program name changes.

 

APPX Application Design Manual (01/13/03) Cover Page The FAIL (or FT) ParameterMiscellaneous Operands

© 2003 by APPX Software, Inc. All rights reserved