I am using MF cobol both 16 and 32 bit on Windows NT4.0.
In a program that prints invoices, different invoice formats are provided for various reasons. These forms may vary in length. To set the correct forms lenght I have used a, linage is invoice-length, clause. This works fine if the printing is sent to an Okidata 320 printer by assinging the file to lpt1. If the same printing is sent to either an HP ink jet or laser the top of forms drops down the page on each following form. I can remove the linage is clause and the printing will work fine as a 11 inch form but I can no longer use other forms on the OK printer. I have viewed the file using a hex editor and without the linage is I get h'0d0a' after each line and multiples at the end of each page. With the linage is clause included it get the h'od0a' but then a string of h'0a0a0a' .
Any help or suggestions would be appreciated.
****************************
000250 SELECT PRINT-FILE
000260 ASSIGN TO PRINT-DEVICE
000270 ORGANIZATION IS LINE SEQUENTIAL
000280 FILE STATUS IS WSWRK-FSTATUS.
***********************************
000790 FD PRINT-FILE.
000800* LINAGE IS INVOICE-SIZE.
000810 01 PRT-FULL.
000820 03 FILLER PIC X(85).
000830 01 PH1-RECORD.
000840 03 FILLER PIC X(30).
000850 03 PH1-CO-NAME PIC X(25).
000860 03 FILLER PIC X(30).
000870
In a program that prints invoices, different invoice formats are provided for various reasons. These forms may vary in length. To set the correct forms lenght I have used a, linage is invoice-length, clause. This works fine if the printing is sent to an Okidata 320 printer by assinging the file to lpt1. If the same printing is sent to either an HP ink jet or laser the top of forms drops down the page on each following form. I can remove the linage is clause and the printing will work fine as a 11 inch form but I can no longer use other forms on the OK printer. I have viewed the file using a hex editor and without the linage is I get h'0d0a' after each line and multiples at the end of each page. With the linage is clause included it get the h'od0a' but then a string of h'0a0a0a' .
Any help or suggestions would be appreciated.
****************************
000250 SELECT PRINT-FILE
000260 ASSIGN TO PRINT-DEVICE
000270 ORGANIZATION IS LINE SEQUENTIAL
000280 FILE STATUS IS WSWRK-FSTATUS.
***********************************
000790 FD PRINT-FILE.
000800* LINAGE IS INVOICE-SIZE.
000810 01 PRT-FULL.
000820 03 FILLER PIC X(85).
000830 01 PH1-RECORD.
000840 03 FILLER PIC X(30).
000850 03 PH1-CO-NAME PIC X(25).
000860 03 FILLER PIC X(30).
000870