Skip to main content

[Migrated content. Thread originally posted on 23 September 2011]

Running VC R4 for Eclipse under Windows XP.

I have imported 270ish green-screen programs to a single project and compiled them successfully. However, on trying to run them, the first program enters and runs up till the point where it calls the second program, when it fails with an error 173. There is an .exe for the second program in the same directory as the first program's .exe. I have compiled with target type "All executable files" and in the run configuration I have set up COBPATH and COBIDY to point to the appropriate Configuration.bin directory. I have "Program is part of project build configuration" unchecked and nothing in the working directory, and the entry program in Main Program. I suspect that there's some environment variable I've overlooked. Could anyone point me in the right direction?

[Migrated content. Thread originally posted on 23 September 2011]

Running VC R4 for Eclipse under Windows XP.

I have imported 270ish green-screen programs to a single project and compiled them successfully. However, on trying to run them, the first program enters and runs up till the point where it calls the second program, when it fails with an error 173. There is an .exe for the second program in the same directory as the first program's .exe. I have compiled with target type "All executable files" and in the run configuration I have set up COBPATH and COBIDY to point to the appropriate Configuration.bin directory. I have "Program is part of project build configuration" unchecked and nothing in the working directory, and the entry program in Main Program. I suspect that there's some environment variable I've overlooked. Could anyone point me in the right direction?
An .EXE is compiled and linked as a main program.
An .EXE cannot call another .EXE using the COBOL call statement.

If you wish to call a separately compiled program then it needs to exist as a .DLL and it must exist in the same folder as the main program or it must be in a folder locatable by the PATH environment variable.

So an .EXE can call a .DLL using the name of the .dll in the call statement.

If you really wish to launch an .EXE from another .EXE it can be launched in a separate process using the library routine CBL_EXEC_RUN_UNIT or the Windows API call CreateProcess.



[Migrated content. Thread originally posted on 23 September 2011]

Running VC R4 for Eclipse under Windows XP.

I have imported 270ish green-screen programs to a single project and compiled them successfully. However, on trying to run them, the first program enters and runs up till the point where it calls the second program, when it fails with an error 173. There is an .exe for the second program in the same directory as the first program's .exe. I have compiled with target type "All executable files" and in the run configuration I have set up COBPATH and COBIDY to point to the appropriate Configuration.bin directory. I have "Program is part of project build configuration" unchecked and nothing in the working directory, and the entry program in Main Program. I suspect that there's some environment variable I've overlooked. Could anyone point me in the right direction?
Thanks Chris, that's got it far enough to call another program and then crash for another reason.

I'm now getting another error 173. I use some ADIS functionality and when calling x"af" I'm getting an error 173 - fails to load "PANELS". Is there some library I need to include in the link list?

[Migrated content. Thread originally posted on 23 September 2011]

Running VC R4 for Eclipse under Windows XP.

I have imported 270ish green-screen programs to a single project and compiled them successfully. However, on trying to run them, the first program enters and runs up till the point where it calls the second program, when it fails with an error 173. There is an .exe for the second program in the same directory as the first program's .exe. I have compiled with target type "All executable files" and in the run configuration I have set up COBPATH and COBIDY to point to the appropriate Configuration.bin directory. I have "Program is part of project build configuration" unchecked and nothing in the working directory, and the entry program in Main Program. I suspect that there's some environment variable I've overlooked. Could anyone point me in the right direction?
Thanks Chris, that's got it far enough to call another program and then crash for another reason.

I'm now getting another error 173. I use some ADIS functionality and when calling x"af" I'm getting an error 173 - fails to load "PANELS". Is there some library I need to include in the link list?

[Migrated content. Thread originally posted on 23 September 2011]

Running VC R4 for Eclipse under Windows XP.

I have imported 270ish green-screen programs to a single project and compiled them successfully. However, on trying to run them, the first program enters and runs up till the point where it calls the second program, when it fails with an error 173. There is an .exe for the second program in the same directory as the first program's .exe. I have compiled with target type "All executable files" and in the run configuration I have set up COBPATH and COBIDY to point to the appropriate Configuration.bin directory. I have "Program is part of project build configuration" unchecked and nothing in the working directory, and the entry program in Main Program. I suspect that there's some environment variable I've overlooked. Could anyone point me in the right direction?
Which exact AF function call are you using?
Can you show me what it looks like?

I just did a test here using AF function 1 and it worked fine without adding anything additional for linking.

Thanks.

[Migrated content. Thread originally posted on 23 September 2011]

Running VC R4 for Eclipse under Windows XP.

I have imported 270ish green-screen programs to a single project and compiled them successfully. However, on trying to run them, the first program enters and runs up till the point where it calls the second program, when it fails with an error 173. There is an .exe for the second program in the same directory as the first program's .exe. I have compiled with target type "All executable files" and in the run configuration I have set up COBPATH and COBIDY to point to the appropriate Configuration.bin directory. I have "Program is part of project build configuration" unchecked and nothing in the working directory, and the entry program in Main Program. I suspect that there's some environment variable I've overlooked. Could anyone point me in the right direction?
Function 49:

01 ws-adis-panel-function pic 99 comp-x.
01 ws-adis-panel-dummy-param pic x.

move 49 to ws-adis-panel-function
call x"af" using ws-adis-panel-function
ws-adis-panel-dummy-param

Thanks.

[Migrated content. Thread originally posted on 23 September 2011]

Running VC R4 for Eclipse under Windows XP.

I have imported 270ish green-screen programs to a single project and compiled them successfully. However, on trying to run them, the first program enters and runs up till the point where it calls the second program, when it fails with an error 173. There is an .exe for the second program in the same directory as the first program's .exe. I have compiled with target type "All executable files" and in the run configuration I have set up COBPATH and COBIDY to point to the appropriate Configuration.bin directory. I have "Program is part of project build configuration" unchecked and nothing in the working directory, and the entry program in Main Program. I suspect that there's some environment variable I've overlooked. Could anyone point me in the right direction?
These calls are for the character based Panels facility that was provided in Net Express and earlier products.

The support for character based Panels is not currently included in the Visual COBOL product so programs that make use of this facility will generate the error that you are seeing.

This support is being considered for possible inclusion in a later release of Visual COBOL.




[Migrated content. Thread originally posted on 23 September 2011]

Running VC R4 for Eclipse under Windows XP.

I have imported 270ish green-screen programs to a single project and compiled them successfully. However, on trying to run them, the first program enters and runs up till the point where it calls the second program, when it fails with an error 173. There is an .exe for the second program in the same directory as the first program's .exe. I have compiled with target type "All executable files" and in the run configuration I have set up COBPATH and COBIDY to point to the appropriate Configuration.bin directory. I have "Program is part of project build configuration" unchecked and nothing in the working directory, and the entry program in Main Program. I suspect that there's some environment variable I've overlooked. Could anyone point me in the right direction?
Hi Mike,

Can you please e-mail me directly at chris.glazier@microfocus.com and give me your contact and company information?

Thanks.

[Migrated content. Thread originally posted on 23 September 2011]

Running VC R4 for Eclipse under Windows XP.

I have imported 270ish green-screen programs to a single project and compiled them successfully. However, on trying to run them, the first program enters and runs up till the point where it calls the second program, when it fails with an error 173. There is an .exe for the second program in the same directory as the first program's .exe. I have compiled with target type "All executable files" and in the run configuration I have set up COBPATH and COBIDY to point to the appropriate Configuration.bin directory. I have "Program is part of project build configuration" unchecked and nothing in the working directory, and the entry program in Main Program. I suspect that there's some environment variable I've overlooked. Could anyone point me in the right direction?
The support for these older call-by-number routines and direct calls to character based PANELS should be supported in a future update release of Visual COBOL.

Thanks.