I was trying out RES and encountered a problem. When I run it to convert any of the supplied cobol example files it is erroring out like this:
[root@devibm RES]# java -jar RES.jar -v -p -free cobol/ACCEPT.cob
RES Cobol 2 Java alpha1.2(03/25/2010) - COPYRIGHT 2009
Options: sourceFormat=free;
cobol/ACCEPT.cob
Parsing Cobol started for: /home/user1/cobol2java/RES/cobol/ACCEPT.cob
com.res.cobol.parser.ParseException: Encountered " "#" "# "" at line 1, column 1.
Was expecting:
<EOF>
Done in 0s.
[root@devibm RES]#
I looked at the cobol source and there is no "#" character on the line specified in the error, but I did notice that there is a file named "$temporary.file" in the directory that I ran the jar file from. The first line of that file contains:
# 1 "/home/user1/cobol2java/RES/cobol/ACCEPT.cob"
After that line is a blank line, and then a copy of the contents of the source file.
I'm assuming what is happening is that RES is creating that file with a copy of the contents of the source input file, then working from it. It is adding that first line for some reason and choking on it.
My java -version output is:
java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)
Platform is Red Hat Enterprise Linux 4
Please make sure you are using a version after May 1, 2010 from sourceforge site, in which I have introudced Linux support for the first time.
If you have trouble with the latest vesion, please yell here:).
Regards,
-Venkat Krishnamurthy
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Hi,
I am also getting the same was expecting EOF exception. When tried with -fixed, getting the error in different line. I do not think it is an issue with Linux, becos I am working on windows.
Hi Jaisam,
Which download version are you using?
Because I know others are using it successfully on Windows and Linux.
If you are facing problems with your own Cobol program, can you please send me the test case to open.cobol.to.java@gmail.com
If it is a problem with sample program, please indicate.
Regards,
-Venkat Krishnamurthy
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Thanks for your Reply Venkat,
This is the version (1.5alpha-05-06-2010) I am using. Please see the out put.
cobolComments=true;cobolStatementsASComments=true;javaType=most;longDataPackageName=true;overwrite=true;sourceFormat=free;
Parsing Cobol started for: C:\TEMP\Softwares\newres\RES\cobo\test.cob
com.res.cobol.parser.ParseException: Encountered " "**" "** "" at line 112, column 7.
Was expecting:
<EOF>
I could not see anything odd in this line, even after giving some blank line it complains at the same place.
I appreciate your help
With Regards
Jaisam
Last edit: Anonymous 2016-10-10
try running with -trace option and please email me the output and cobol program.
This could be a syntax error or unsupported feature. I can look and make changes.
Regards,
-Venkat Krishnamurthy
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).