KB Article #51089
Datamapper Query
How to include lib/include files which are not located in $CORE_LOCAL /4edi/lib(include) or $CORE_ROOT/4edi/lib(include) from datamapper?
Resolution
For this we have to do some changes in the main code file.
The system looks for the .s4h header files in the default (INCLUDE folder) and for the .s4m library files in the default (LIB folder).
But to include the files not located in these folders one can do is create own folders at any location say create two folders named INCLUDE_TMP and LIB_TMP on C:\
In this case when you want to refer the datamapper to the own folders the below shown syntax can be used.
NOTE : Reference to the INCLUDE and LIB folder is with ¿\\¿ (double slash) directory separator on place of ¿\¿ (single slash), it is something like ¿C¿ language reference.
e.g. INCLUDE ¿c:\\inc\\maplib.s4h¿
Also if we are just dropping the files to the default INCLUDE & LIB folders not to the own folders, we just need to include .s4h file. Its only the case that we¿ll have to give a reference to the LIB folder too when we are using our own folders (e.g. INCLUDE_TMP & LIB_TMP)