by danpalmer · 10y ago · 0 comments
HEAD DIVISION
META-TAGS SECTION.
BODY DIVISION.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.