Friday, March 1, 2013

Transalating Cobol code to java code


Here i am explaining convert cobol code  to java code


Using Res can achive this

First download RES from http://sourceforge.net/projects/opencobol2java/

After dowload UnZip the RES.zip file

  • After extracted the zip file then go to Cobol folder in this folder have the run.bat file.





  • copy the your cobol files to cobol folder





  • open run.bat file,copy this code java -jar ..\RES.jar -c3 -v -opt2 -dp1 -overwrite yourcobolfile >> $run.log 2>> $err.log





  • save the file





  • Run the run.bat file





  • you can see your class files in cobolprogramclasses folder orcoboldataclasses