Skip to main content

Hi, please help 

I am working on Micro Focus Net Express V5.104.0083.

we execute Cobol programs using command "run.exe  <cobol program>.dll", where .dll is compiled cobol program. i dont know whether this run.exe is proprietary program of the net express suite or created by somebody else within my company.

Now this run.exe command is returning error code 66 sometimes. not every time.

i want to know if this run.exe is part of Microfocus Net express, if so what does return code 66 mean?

if its not part of Net Express, how do cobol programs are executed in general.

Thank you very much


#NetExpress5.1
#COBOL

Hi, please help 

I am working on Micro Focus Net Express V5.104.0083.

we execute Cobol programs using command "run.exe  <cobol program>.dll", where .dll is compiled cobol program. i dont know whether this run.exe is proprietary program of the net express suite or created by somebody else within my company.

Now this run.exe command is returning error code 66 sometimes. not every time.

i want to know if this run.exe is part of Microfocus Net express, if so what does return code 66 mean?

if its not part of Net Express, how do cobol programs are executed in general.

Thank you very much


#NetExpress5.1
#COBOL

There is a RUN.EXE that is supplied by the Net Express product.

This is a trigger program that can be used to run COBOL executables that cannot be run standalone, i.e non .exe files.

You can determine if this is indeed the program that is supplied by Net Express by running RUN.EXE from a command line without passing any parameters to it.

It should display a banner stating its name and version number.

I do not believe that the RUN.EXE program returns any return-code values of its own.

It is more likely that your application is setting the return-code special register or this is being set implicitly by a call to one of the CBL library routines or another called program.

I have no idea what a 66 means as it is not a valid RTS error value.

How exactly are you checking for this error code value?

Thanks.


Hi, please help 

I am working on Micro Focus Net Express V5.104.0083.

we execute Cobol programs using command "run.exe  <cobol program>.dll", where .dll is compiled cobol program. i dont know whether this run.exe is proprietary program of the net express suite or created by somebody else within my company.

Now this run.exe command is returning error code 66 sometimes. not every time.

i want to know if this run.exe is part of Microfocus Net express, if so what does return code 66 mean?

if its not part of Net Express, how do cobol programs are executed in general.

Thank you very much


#NetExpress5.1
#COBOL

Thank you very much Chris,

This is the banner that gets displayed when ever we execute run.exe program.

Micro Focus Net Express V5.104.0083

RUN TIME ENVIRONMENT Copyright (C) 1984-2009 Micro Focus (IP) Limited.

URN AXCGG/AA0/00000

we trigger run.exe from a unix shell script, return code is captured using "$?" after executing run.exe.

i will check in supporting programs and libraries for this error.

Thank you very much once again for your time.


Hi, please help 

I am working on Micro Focus Net Express V5.104.0083.

we execute Cobol programs using command "run.exe  <cobol program>.dll", where .dll is compiled cobol program. i dont know whether this run.exe is proprietary program of the net express suite or created by somebody else within my company.

Now this run.exe command is returning error code 66 sometimes. not every time.

i want to know if this run.exe is part of Microfocus Net express, if so what does return code 66 mean?

if its not part of Net Express, how do cobol programs are executed in general.

Thank you very much


#NetExpress5.1
#COBOL

Hi Chris,

I have tested RUN.EXE, it is displaying mircofocus banner. while testing run.exe i noticed that the return codes from run.exe are not RTS errors.

For file not found error, below message is displayed on console.

I/O error : file 'MFLAGS'
error code: 3/5 (ANS85), pc=0, call=1, seg=0
13 File not found

but run.exe returned error 32 to shell command "$?". even for 153 - subscript out of range, run.exe returned 32 error code.

Now i am quite sure that some library file/ configuration file is changing the RTS errors.

Can you help me identifying the library/configuration file which can change this messages.

Thank you very much.


Hi, please help 

I am working on Micro Focus Net Express V5.104.0083.

we execute Cobol programs using command "run.exe  <cobol program>.dll", where .dll is compiled cobol program. i dont know whether this run.exe is proprietary program of the net express suite or created by somebody else within my company.

Now this run.exe command is returning error code 66 sometimes. not every time.

i want to know if this run.exe is part of Microfocus Net express, if so what does return code 66 mean?

if its not part of Net Express, how do cobol programs are executed in general.

Thank you very much


#NetExpress5.1
#COBOL

Hi Chris,

I have tested RUN.EXE, it is displaying mircofocus banner. while testing run.exe i noticed that the return codes from run.exe are not RTS errors.

For file not found error, below message is displayed on console.

I/O error : file 'MFLAGS'
error code: 3/5 (ANS85), pc=0, call=1, seg=0
13 File not found

but run.exe returned error 32 to shell command "$?". even for 153 - subscript out of range, run.exe returned 32 error code.

Now i am quite sure that some library file/ configuration file is changing the RTS errors.

Can you help me identifying the library/configuration file which can change this messages.

Thank you very much.


Hi, please help 

I am working on Micro Focus Net Express V5.104.0083.

we execute Cobol programs using command "run.exe  <cobol program>.dll", where .dll is compiled cobol program. i dont know whether this run.exe is proprietary program of the net express suite or created by somebody else within my company.

Now this run.exe command is returning error code 66 sometimes. not every time.

i want to know if this run.exe is part of Microfocus Net express, if so what does return code 66 mean?

if its not part of Net Express, how do cobol programs are executed in general.

Thank you very much


#NetExpress5.1
#COBOL

Actually, any program can set this value by simply doing something like:

move 66 to RETURN-CODE

and then exiting.

The value being set as the errorlevel is simply whatever value is in the system register (AX) at the time the program exits.

You should really be testing for exceptions within the program code itself in order to determine the exact location where an error is occurring instead of attempting to test this from outside of the process unless you are specifically setting the value to be tested.

Thanks.