Binder Language to Export the write-audit-trail Procedure
STRPGMEXP PGMLVL(*CURRENT) EXPORT SYMBOL('write_audit_trail')
ENDPGMEXP
Note:
- The Start Program Export (
STRPGMEXP) command identifies the beginning of a list of exports from the service program T1520SP2. - The Export Symbol (
EXPORT) command identifies the symbol namewrite_audit_trailto be exported from the service program T1520SP2. - The symbol name
write_audit_trail, identified between theSTRPGMEXP PGMLVL(*CURRENT)andENDPGMEXPpair, defines the public interface to the service programT1520SP2. 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. - The symbol name
write_audit_trailis 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.) - The symbol name
write_audit_trailis also used to create a signature. The signature validates the public interface to the service programT1520SP2at activation. This ensures that the ILE C service programT1520SP1and the ILE C programT1520PG1can use service programT1520SP2without being re-created.