Examples of EXPORT Declarations

The following example declares the procedure EXPROC as an entry point in a library program:

EXPORT EXPROC

The following example declares the procedure PROC1 as an entry point in a library program.

The name exported for this procedure is LIBPROC3; consequently, a program calls PROC1 in this library by using the name LIBPROC3.

EXPORT PROC1 AS "LIBPROC3"

The following example declares the procedure reference arrays PRA1 and PRA2 and the procedure PROCID as entry points in a library program. The procedure reference array PRA2 is exported with the name PROCREF; consequently, a program must use the name PROCREF to call PRA2.

EXPORT PRA1, PROCID, PRA2 AS "PROCREF"