There is a webframework called Z WebPortal from a US company, Zortec Intl. that has a COBOL-like backend that will run 'real' COLBOL code too, with a js layer and xml to draw the output in the browser as html.
It is proprietary, but very fast and the backend code is much simplified over COBOL.
Writing to a log file looks like:
fd ?logthis-txt reclen 80
def logthis-usr gp 80
logthis-date an 10
logthis-time an 8
open extend logthis using '/var/log/logfile.txt'
on error next sentence
else display date lj upon logthis-date
call GETIME using logthis-time
move usrid to logthis-usr
write logthis
close logthis.
You can see that a lot of the (unnecessary) typing done in COBOL has been removed.
It has its limitations as most web-frameworks do, but if you have mainframe COBOL and want to present it in the browser with fancy colors and graphics it has more pros than cons.
It is proprietary, but very fast and the backend code is much simplified over COBOL.
Writing to a log file looks like:
You can see that a lot of the (unnecessary) typing done in COBOL has been removed. It has its limitations as most web-frameworks do, but if you have mainframe COBOL and want to present it in the browser with fancy colors and graphics it has more pros than cons.