I am forced to use an older, unsupported version of NetCobol (7.3.2) for a straight conversion of numerous existing cobol programs from VMS to Linux environment. The Cobol programs use ReportWriter to create reports that are printed to various printers. The formatting of the reports (e.g., font, page orientation) is handled externally to the cobol program, i.e, the cobol program generates a simple ascii file and the VMS print command specifies a FORM that sends the appropriate PCL to the appropriate printer.
Using NetCobol as installed, the ReportWriter reports are being generated in Postscript which does not have the proper formatting and when sent to the printer with the PCL commands does not print correctly.
I am trying to find a specification for the Printer Information File (prtinf) in order to change the output format of reports generated with the ReportWriter feature. The reports need to be generated as simple ascii text files and use the existing PCL to be formatted.
I found the prtinf.eng file in /opt/FJSVcbl/COBOLRT/config/cob-defaults which set printer attribute to PS1 (see below). If I remove this value, the reports appear to be generated with PCL which I believe is specific to EPSON printers. I need to generate simple ascii text (I can handle the conversion of any end of line characters CR/LF) but I don't know what value to use to accomplish this. NOTE: I also looked into converting the Postscript to ASCII using ps2ascii but the ReportWriter generated postscript report has character spacing which results in a space between every character in the ASCII version.
The only reference I can find related to this subject is in the NetCOBOL PowerFORM Runtime Reference Manual (V10). Appendix C provides a definition of the Printer Information File but the keywords (e.g., PRTDRV) do not match the keywords found in the installed file (printer) and adding the keywords results in a runtime error.
# cat /opt/FJSVcbl/COBOLRT/config/cob-defaults/prtinf.eng
#---------------------------------------------------------------#
# Default print information file (ENGLISH) #
#---------------------------------------------------------------#
papersize ltr
printer PS1
Using NetCobol as installed, the ReportWriter reports are being generated in Postscript which does not have the proper formatting and when sent to the printer with the PCL commands does not print correctly.
I am trying to find a specification for the Printer Information File (prtinf) in order to change the output format of reports generated with the ReportWriter feature. The reports need to be generated as simple ascii text files and use the existing PCL to be formatted.
I found the prtinf.eng file in /opt/FJSVcbl/COBOLRT/config/cob-defaults which set printer attribute to PS1 (see below). If I remove this value, the reports appear to be generated with PCL which I believe is specific to EPSON printers. I need to generate simple ascii text (I can handle the conversion of any end of line characters CR/LF) but I don't know what value to use to accomplish this. NOTE: I also looked into converting the Postscript to ASCII using ps2ascii but the ReportWriter generated postscript report has character spacing which results in a space between every character in the ASCII version.
The only reference I can find related to this subject is in the NetCOBOL PowerFORM Runtime Reference Manual (V10). Appendix C provides a definition of the Printer Information File but the keywords (e.g., PRTDRV) do not match the keywords found in the installed file (printer) and adding the keywords results in a runtime error.
# cat /opt/FJSVcbl/COBOLRT/config/cob-defaults/prtinf.eng
#---------------------------------------------------------------#
# Default print information file (ENGLISH) #
#---------------------------------------------------------------#
papersize ltr
printer PS1