Format of the External Call Table

The format for an external call table is:

	ZCINIT | ZCALLINI
	[zcentries] 
	.
	.
	.
	ZCALLFIN
	.END
	

Where:

ZCINIT or ZCALLINI

Appears at the beginning of every file, before the first zcentry. ZCALLINI and ZCINIT are synonyms.

zcentry: A set of related lines specifying the characteristics of one external routine. An external call table source file may contain multiple table entries. zcentries are described in a separate section of this chapter.

ZCALLFIN: Appears as the last line before .END in the external call table. A ZCALLFIN marks the end of the table and triggers proper processing of the last entry. If the table does not include a ZCALLFIN, the VMS assembler terminates without invoking the proper edit checks, silently producing a defective external call table that fails at run-time.

.END: Appears as the final line of any VMS MACRO source file.

The MACRO may not include any programmed code between the ZCINIT or ZCALLINI and the ZCALLFIN. Programmed code should appear before the ZCINIT or ZCALLINI.

You must also point to the object library that contains the macros needed to assemble the external call tables. This may be done by adding

	.library "gtm$dist:gtmzcall.mlb"
	

to the external call table before the line containing ZCINIT or ZCALLINI. Alternatively, you must add

	+gtm$dist:gtmzcall.mlb/LIBRARY	
	

the MACRO command, as shown in the "External Call Example" section.