Skip to main content

--netexe and --netdll

  • October 25, 2012
  • 9 replies
  • 0 views

Probably a  very simple question, but this is the first time I am trying to generate .Net assemblies or dlls.

I use ccbl32 --netexe 2.0 nettest.cbl and the compile goes through with no errors, bur I only get a .acu file, I do not get a .exe file

if I use ccbl32 --netdll 2.0 nettest.cbl  once again compiles with no errors and I get the .Netmodule and .acu files, but no .dll

I am no doubt doing something dumb but I cant see what it is, any suggestions?

9 replies

Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • October 25, 2012

Probably a  very simple question, but this is the first time I am trying to generate .Net assemblies or dlls.

I use ccbl32 --netexe 2.0 nettest.cbl and the compile goes through with no errors, bur I only get a .acu file, I do not get a .exe file

if I use ccbl32 --netdll 2.0 nettest.cbl  once again compiles with no errors and I get the .Netmodule and .acu files, but no .dll

I am no doubt doing something dumb but I cant see what it is, any suggestions?

what version are you using .. there was a fix for 8.1.2 ... ecn3938: 8.1.2 Correction: Using --netdll:2.0 compile option

and a different fix for 9.1.2 ... ecn4171: 9.1.2 Correction: --netdll fails


  • Author
  • Rocketeer
  • 19312 replies
  • October 26, 2012

Probably a  very simple question, but this is the first time I am trying to generate .Net assemblies or dlls.

I use ccbl32 --netexe 2.0 nettest.cbl and the compile goes through with no errors, bur I only get a .acu file, I do not get a .exe file

if I use ccbl32 --netdll 2.0 nettest.cbl  once again compiles with no errors and I get the .Netmodule and .acu files, but no .dll

I am no doubt doing something dumb but I cant see what it is, any suggestions?

I am using 8.1.3 as I say, it doesnt fail, it completes, apparently successfully , I get the .Netmodule and _CVM.dll but no nettest.dll and when using --netexe I only get the nettest.acu I dont get any nettest.exe


  • Author
  • Rocketeer
  • 19312 replies
  • October 26, 2012

Probably a  very simple question, but this is the first time I am trying to generate .Net assemblies or dlls.

I use ccbl32 --netexe 2.0 nettest.cbl and the compile goes through with no errors, bur I only get a .acu file, I do not get a .exe file

if I use ccbl32 --netdll 2.0 nettest.cbl  once again compiles with no errors and I get the .Netmodule and .acu files, but no .dll

I am no doubt doing something dumb but I cant see what it is, any suggestions?

Some more information, when using --netexe although the .acu file is created, it still displays

ccbl32.exe [options] source_file

ccbl32 .exe -help

on completion, and as I recall, if these display when doing a normal compile, the compiler is not happy about something, and is asking for more command line input. May be a coincidence but I just mention it. I can't see anything missing, from my command line ccbl32 --netexe 2.0 nettest.cbl  


  • Author
  • Rocketeer
  • 19312 replies
  • October 26, 2012

Probably a  very simple question, but this is the first time I am trying to generate .Net assemblies or dlls.

I use ccbl32 --netexe 2.0 nettest.cbl and the compile goes through with no errors, bur I only get a .acu file, I do not get a .exe file

if I use ccbl32 --netdll 2.0 nettest.cbl  once again compiles with no errors and I get the .Netmodule and .acu files, but no .dll

I am no doubt doing something dumb but I cant see what it is, any suggestions?

Some more information, when using --netexe although the .acu file is created, it still displays

ccbl32.exe [options] source_file

ccbl32 .exe -help

on completion, and as I recall, if these display when doing a normal compile, the compiler is not happy about something, and is asking for more command line input. May be a coincidence but I just mention it. I can't see anything missing, from my command line ccbl32 --netexe 2.0 nettest.cbl  


  • Author
  • Rocketeer
  • 19312 replies
  • October 26, 2012

Probably a  very simple question, but this is the first time I am trying to generate .Net assemblies or dlls.

I use ccbl32 --netexe 2.0 nettest.cbl and the compile goes through with no errors, bur I only get a .acu file, I do not get a .exe file

if I use ccbl32 --netdll 2.0 nettest.cbl  once again compiles with no errors and I get the .Netmodule and .acu files, but no .dll

I am no doubt doing something dumb but I cant see what it is, any suggestions?

Some more information, when using --netexe although the .acu file is created, it still displays

ccbl32.exe [options] source_file

ccbl32 .exe -help

on completion, and as I recall, if these display when doing a normal compile, the compiler is not happy about something, and is asking for more command line input. May be a coincidence but I just mention it. I can't see anything missing, from my command line ccbl32 --netexe 2.0 nettest.cbl  


Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • October 26, 2012

Probably a  very simple question, but this is the first time I am trying to generate .Net assemblies or dlls.

I use ccbl32 --netexe 2.0 nettest.cbl and the compile goes through with no errors, bur I only get a .acu file, I do not get a .exe file

if I use ccbl32 --netdll 2.0 nettest.cbl  once again compiles with no errors and I get the .Netmodule and .acu files, but no .dll

I am no doubt doing something dumb but I cant see what it is, any suggestions?

I believe ccbl32 --netexe  nettest.cbl  will work, the ccbl32 --netexe 2.0 nettest.cbl ... the 2.0 portion is messing with the compile line


Stephen Hjerpe
  • Participating Frequently
  • 1100 replies
  • October 26, 2012

Probably a  very simple question, but this is the first time I am trying to generate .Net assemblies or dlls.

I use ccbl32 --netexe 2.0 nettest.cbl and the compile goes through with no errors, bur I only get a .acu file, I do not get a .exe file

if I use ccbl32 --netdll 2.0 nettest.cbl  once again compiles with no errors and I get the .Netmodule and .acu files, but no .dll

I am no doubt doing something dumb but I cant see what it is, any suggestions?

we missed using the colon it isn't  ccbl32 --netexe 2.0 nettest.cbl

it should be ccbl32 --netexe:2.0 nettest.cbl  ..  this works for me


  • Author
  • Rocketeer
  • 19312 replies
  • October 27, 2012

Probably a  very simple question, but this is the first time I am trying to generate .Net assemblies or dlls.

I use ccbl32 --netexe 2.0 nettest.cbl and the compile goes through with no errors, bur I only get a .acu file, I do not get a .exe file

if I use ccbl32 --netdll 2.0 nettest.cbl  once again compiles with no errors and I get the .Netmodule and .acu files, but no .dll

I am no doubt doing something dumb but I cant see what it is, any suggestions?

Thanks shjerpe, doesnt solve the problem but I do get a different result. To summarise, if I dont use the colon, I get no errors, bur also no nettest.exe file. If I include the colon, the .acu file is still produced, but the attempt to create the .exe file fails with RC 2 (I presume this is Return Code 2)  but I cant find anywhere in the documentation what return code 2 means in this instance, any idea where I should look?    


  • Author
  • Rocketeer
  • 19312 replies
  • October 29, 2012

Probably a  very simple question, but this is the first time I am trying to generate .Net assemblies or dlls.

I use ccbl32 --netexe 2.0 nettest.cbl and the compile goes through with no errors, bur I only get a .acu file, I do not get a .exe file

if I use ccbl32 --netdll 2.0 nettest.cbl  once again compiles with no errors and I get the .Netmodule and .acu files, but no .dll

I am no doubt doing something dumb but I cant see what it is, any suggestions?

Thanks for all the suggestions, but I have solved the problem. AL.EXE was not installed as it is part of the SDK, not part of the .Net Framework. I downloaded and installed the SDK and now everything works