Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

File open output and assign to printer works fine but need to add contents from a binary file running on Redhat

$
0
0

Here is my select statement for a file used as printer handling

 


SELECT PRINT-FILE
ASSIGN TO PRINTER "prt109"
FILE STATUS IS ERR-STATUS.


FD PRINT-FILE
RECORD CONTAINS 132 CHARACTERS
LABEL RECORDS ARE OMITTED.

01 PRT-BUFFER.
    10 PL PIC X(132).

I have an environment statement of 

dd_prt109=>lp -dprt109 -s -oraw

 

Writing out records to this file and then doing a close works just perfectly, however I need to add in contents from an existing file which happens to contain some binary data and is much larger than my print file definition.  As such I cannot just read one line at at time from the binary file and inset to the print file.

 

Any suggestions?

 


Viewing all articles
Browse latest Browse all 4356

Trending Articles