Problem:
We have syncsort for windows I would like to link in there libs so when I execute
a gnt with run program.gnt the sort verb in the program will use syncsort
instead of mfsort.
On our Microfocus unix system when we compile we use this command
cob -uVP -C "nobound defaultbyte=0 CALLSORT" -N nohpchunk /prod/srclib/ProgramName.cbl -L /usr/syncsort/lib -lmfsyncsort -lsyncsort
then we use COBRUN ProgramName to execute
How do I do this in net express
Resolution:
solution:
The pc is not like Unix - in this case the unix version of syncsort had been binded into the runtime
The windows version does not do this in the same way - the syncsort is linked into the module doing the calling.
As per syncsort docs:
This is what the Syncsort documentation has on this subject.
Using SyncSort from COBOL SORT and MERGE verbs
When you use the SORT and MERGE verbs within Micro Focus COBOL Workbench or Merant's Micro Focus Net Express programs, it is possible to replace the native SORT and MERGE verbs with SyncSort by compiling and linking your COBOL program as follows:
Workbench:
cobol prog.cbl "CALLSORT(mfsyncsort.dll)"
cbllink prog.obj
Net Express:
cobol prog.cbl
cbllink -s prog.obj mfsyncsort.lib
where prog.cbl is the name of your COBOL source program.
When your program issues a SORT or MERGE verb, the Micro Focus SyncSort dynamic link libraries mfsyncsort.dll and syncsort.dll will be found via the PATH environment variable. The PATH environment variable is updated when you install SyncSort. If you need to reference mfsyncsort.dll or syncsort.dll manually, they are in the directory SyncSort\\Programs. The Net Express cbllink command finds the mfsyncsort.lib library via the LIB environment variable. The LIB environment variable is updated when you install SyncSort. If you need to reference mfsyncsort.lib manually, it is in the directory SyncSort\\Lib.
