The preceding discussion described how to export external entrys from a DLL. You can also export external data from a DLL. To export external data from a DLL, the data must be declared as RESERVED throughout your application. The following conditions must also apply:
For example, to create a DLL exporting just the variable datatab, the following routine would be used:
*process dllinit;
edata: package reserves( datatab );
dcl datatab char(256) reserved external init( .... );
end;
To import datatab into a procedure outside this DLL, it would be declared as:
dcl datatab char(256) reserved(imported) external;