Binder Language to Export the write-audit-trail Procedure

Figure 1. Binder Language Source to Export write_audit_trail Procedure
          STRPGMEXP  PGMLVL(*CURRENT) EXPORT SYMBOL('write_audit_trail')
          ENDPGMEXP
Note:
  1. The Start Program Export (STRPGMEXP) command identifies the beginning of a list of exports from the service program T1520SP2.
  2. The Export Symbol (EXPORT) command identifies the symbol name write_audit_trail to be exported from the service program T1520SP2.
  3. The symbol name write_audit_trail, identified between the STRPGMEXP PGMLVL(*CURRENT) and ENDPGMEXP pair, defines the public interface to the service program T1520SP2. Only those procedures and data items exported from the module objects making up the ILE C service program can be exported from this service program. If you cannot control the public interface, runtime or activation errors may occur.
  4. The symbol name write_audit_trail is enclosed in apostrophes to maintain its lowercase format. Without apostrophes it is converted to uppercase characters. (The binder would search for WRITE_AUDIT_TRAIL, which it would not find.)
  5. The symbol name write_audit_trail is also used to create a signature. The signature validates the public interface to the service program T1520SP2 at activation. This ensures that the ILE C service program T1520SP1 and the ILE C program T1520PG1 can use service program T1520SP2 without being re-created.