Page 1 of 1

where is Cobol.exe???

Posted: Fri Dec 26, 2008 6:22 am
by akashraog
I am a new used of Zeus Tool.

I would be using Zeus for for learing and upgrading myself as a cobol programmer....

However when i tried compiling a basic program, it gave me an error saying COBOL.EXE not found. When i search my harddisk to see where cobol.exe is saved. it gave me ZERo results.

Doesn't ZEUS provide the cobol.exe with the package.

regards,
Akash

Posted: Fri Dec 26, 2008 6:32 am
by jussij
Doesn't ZEUS provide the cobol.exe with the package.

Zeus does not come with a COBOL compiler. You first need to install one of the many COBOL compilers available and then configure Zeus to point to that compiler.

For example here are some links to a few COBOL compiler options:

http://www.oevelen.com/eng/cobol/lang/index.html
http://www.thefreecountry.com/compilers/cobol.shtml

Cheers Jussi

Posted: Fri Dec 26, 2008 11:54 am
by akashraog
Thanks buddy!!!!

Can you suggest one compiler which can be used with Windows Vista?

Also can you list the ones which you have used on other plateforms...

Thanks.
Akash

Posted: Fri Dec 26, 2008 2:03 pm
by jussij
GNU Cobol Setup
Details on how to use the GNU Cobol compiler from inside Zeus can be found here: http://www.zeusedit.com/zforum/viewtopic.php?t=7174

TinyCOBOL Setup
Details on how to use the TinyCOBOL compiler from inside Zeus can be found here: http://www.zeusedit.com/zforum/viewtopic.php?p=11245

Cheers Jussi

Posted: Sun Dec 28, 2008 1:21 pm
by akashraog
Thanks Jussi for ur elaborate explanation...
I was trying to install using the procedure described by you but the installer never installs as.exe. I have tried so many times..

Can u please send the as.exe as an attachment at akashraog@yahoo.co.in?

Thanks for all your help.
Ragards,
Akash

Posted: Mon Dec 29, 2008 2:56 am
by jussij
Can u please send the as.exe as an attachment
This is only one of many files that needs to be installed so sending it by attachement will not help.

The as.exe should have be installed by step number 5.

To clarify this step, you need to go to this link below where you will find the MinGW-5.1.4.exe file:

http://sourceforge.net/project/showfile ... _id=595197

You need to download and run this istaller into the c:\mingw folder and it will install the whole mingw compiler which includes the missing as.exe file.

Cheers Jussi

Posted: Mon Dec 29, 2008 2:39 pm
by akashraog
My test.cobol program:
IDENTIFICATION DIVISION.
PROGRAM-ID. ShortestProgram.

PROCEDURE DIVISION.
DisplayPrompt.
DISPLAY "I did it".
STOP RUN.

and when I get the following error when i try to compile the test program...
--------------------Configuration: <default settings> - Release--------------------
Using document type compiler options....

C:\MinGw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file roses.exe: Permission denied
collect2: ld returned 1 exit status
warning: TinyCOBOL compiler resource file 'C:/MinGW\htcobolrc' not found - using internal defaults

Can you help???

Posted: Wed Dec 31, 2008 7:46 am
by jussij
Where does the name roses.exe come form :?:

In the use the Zeus Options, Editor Options menu and in the General section and turn on the Help debug tools and macros check box option.

Then rerun the compile and post the Zeus output produced to the end of this thread.

Cheers Jussi

Posted: Sat Jan 03, 2009 8:59 am
by akashraog
Roses.cob is the name of the test file that i had created...
here is the compile output that you had asked to post:
---------------------------------------------------------------------------
**** Unregistered Software. To be used for evaluation purposes only. ****
---------------------------------------------------------------------------

Debug: Changed to the 'C:\Program Files\Zeus\zExample\' directory supplied
Debug: Command: htcobol.exe "C:\Program Files\Zeus\zExample\roses.cob"
--------------------Configuration: <default settings> - Release--------------------
Using document type compiler options....

Debug: Command Line: C:\Windows\system32\cmd.exe /c htcobol.exe "C:\Program Files\Zeus\zExample\roses.cob"
Debug: Started Process ID: 0xB0C

C:\MinGw\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\mingw32\bin\ld.exe: cannot open output file roses.exe: Permission denied
collect2: ld returned 1 exit status
warning: TinyCOBOL compiler resource file 'C:/MinGW\htcobolrc' not found - using internal defaults

Thanks,
Akash

Posted: Sat Jan 03, 2009 2:16 pm
by jussij
In the instructions I posted I defined this command line:
htcobol.exe -M "$fn"
I don't see the -M options in the command line of the debug output that you posted :?

Also a permission denied error usually means the operating system is not allowing you to write to the output file.

This usually means the file is locked or your user id does not have the correct permissions to write to that folder.

Cheers Jussi

Posted: Sun Jan 04, 2009 2:59 pm
by akashraog
I corrected the -M in the compiler options.

But how do u correct the PERMISSION issue? I am using windows Vista. And i am the admin. Tell me how to give access to Zues so that i can run the EXE?

Thanks for all your help.

Posted: Sun Jan 04, 2009 11:12 pm
by jussij
But how do u correct the PERMISSION issue?
It probably is not a good idea changing the permissions. But looking at the debug output you posted I think the problem might be that Vista is protecting the C:\Program Files\ folder.

In the debug output there is this line:

Code: Select all

C:\Program Files\Zeus\zExample\roses.cob

I would try creating a new c:\work\ folder and then saving this file to c:\work\roses.cob to see if that helps with the permissions.

Cheers Jussi