The following PROC FCMP example shows how to access these enumerated types. In
this example, the enumerated values that are set up in PROC PROTO are implemented
in SAS as macro variables. Therefore, they must be accessed using the & symbol:
proc fcmp library=sasuser.mylib;
struct EStructure mystruct;
mystruct.type=&True;
mystruct.dollar=&Twenty;
run;
C-Source Code in SAS
You can use PROC PROTO in a limited way to compile external C functions. The C
source code can be specified in PROC PROTO in the following way:
externc function-name ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.