The COBOL program that contains your test case(s) must be compiled to one of the executable formats: .dll (Windows only), .so (UNIX only), .int, or .gnt.
Windows:
cbllink -D mytestfixture.cbl
cobol mytestfixture.cbl gnt"";
UNIX:
cob -zU -e "" mytestfixture.cbl
cob -e "" mytestfixture.cbl
Once it is compiled, you must run the resulting file from the command line or shell.
You must compile the procedural managed COBOL programs as .dll using the JVMGEN (sub) Compiler directive. For example:
mkdir bin cobol myunittest.cbl jvmgen(sub) iloutput(bin); mfjarprogmap -directory bin jar -cvf myunittest.jar -C bin . mfurunj myunittest.jar
mkdir bin cob -j myunittest.cbl -C 'jvmgen(sub)' -C 'iloutput(bin)' cobmfjarprogmap -directory bin jar -cvf myunittest.jar -C bin . cobmfurunj myunittest.jar