I used a combination of php, ksh, which I borrowed from an application that was already in use. I used machform.com to generate the html forms and wrote a couple of foxpro programs to generate cobol code from the FD record description. This was about 5 years ago. It took about a week to get the largest program working. Many of the report programs only took an hour or so as I only had to pass the date and report type etc. In all there are about 60 programs (payroll.) There was no issue with acceptance,...
I think what some of you are missing is that we are converting existing programs and have budgetary constraints. I for one have a program using the screen section that has 10 accept statements for 220 fields. Changing the program to have 220 accept statements is a rewrite, not a conversion. In the end, I spent less time converting to html input.
Is it your intention to replicate ADIS ? https://www.microfocus.com/documentation/object-cobol/ocu42/uiuadc.htm
I changed the select line: select print-file assign to '/dev/stdout' and changed the execution to ./testprt |lp -ddestination
Since this is your problem and not mine, have you tried: SELECT PRINT-FILE ASSIGN TO "|lp -dqueue_name". IDENTIFICATION DIVISION. PROGRAM-ID. TESTPRT. ENVIRONMENT DIVISION. INPUT-OUTPUT SECTION. FILE-CONTROL. select print-file assign to printer "|lp -s -dLexmark_MS315dn". DATA DIVISION. FILE SECTION. FD print-file data record is prnt-line . 01 prnt-line pic x(80). WORKING-STORAGE SECTION. PROCEDURE DIVISION. SOJ. open output print-file write prnt-line from "ABBBBBBBBBBBBBBBBBBBBBBBB" close print-file...
The sine calculation program that i posted here [https://sourceforge.net/p/gnucobol/discussion/help/thread/5ef7013474/?limit=25#24e2] works when compiled using separate complies for the mainline and the function, in both Linux an SCO. I thought that the problems with the box program might have to do with the display statements and I moved them around to the subroutine and then calling program, but to no avail. I have not done anything since the middle of January; too many year ends to deal with.
It works as separate programs and compiled separately in this environment: SCO Openserver 6 unix:/u/ledg# cobc --version cobc (GnuCOBOL) 3.1-rc1.0 Copyright (C) 2020 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later https://gnu.org/licenses/gpl.html This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Written by Keisuke Nishida, Roger While, Ron Norman, Simon Sobisch, Edward Hart...
What I've did was * using the original version (I've mod-edited the split into two sources in) * changed box.cbl to have PROGRAM-ID. box. (lower-case) * compiled and run with cobc -xj testbox.cbl box.cbl I tried this, and while it terminated normally, it did not draw the box. I have made so many changes playing with this, I am going to go back to the original MF code and try again.