PROTO Procedure

PROC PROTO Statement

Register, in batch mode, external functions that are written in the C or C++ programming languages.
Splitter Function Example

Syntax

PROC PROTO PACKAGE=entry <options>;

Summary of Optional Arguments

for XML databases only, enables the code to be encoded within a data set.
specifies a text string to describe or label a package.
specifies that none of the functions in a package will produce exceptions.
for Windows PC platforms only, indicates that functions be called using the "_ stdcall" convention.
for Windows PC platforms only, specifies that all structures in a package be compiled with a specific N-BYTE packing pragma.

Required Argument

PACKAGE=entry
specifies the SAS entry where the prototype information is saved. Entry is a three-level name having the following form: library.dataset.package. Package enables you to specify grouping in the GUI.

Optional Arguments

ENCRYPT | HIDE
specifies that encoding within a database is allowed.
Restriction:This option is available for XML databases only.
LABEL=package-label
specifies a text string that is used to describe or label the package. The maximum length of the label is 256 characters.
NOSIGNALS
specifies that none of the functions in a package will produce exceptions or signals.
STDCALL
for Windows PC platforms only, indicates that all functions in the package are called using the "_stdcall" convention.
STRUCTPACKn | PACKn
for Windows PC platforms only, specifies that all structures in this package were compiled with the given N-BYTE packing pragma. That is, STRUCTURE4 specifies that all structures in the package were compiled with the “#pragma pack(4)” option.