Main Menu

KB#00847-Printing directly to a port sometimes loses the last few lines of the report.

Title:

Printing directly to a port sometimes loses the last few lines of the report.

Description:

Printing directly to a port (/dev/ttyPX under UNIX) sometimes loses the last few lines of the report. 

Printing directly to a port from operating system (cat < /etc/termcap > /dev/ttyPX) works fine and printing to the port via OS spooler works fine. 


Resolution:

This can be a timing problem between PRO/5 and the printer. Try adding a WAIT=5 to ensure that the printer memory is not getting full and the data being lost. 

If the printer's memory gets full and PRO/5 isn't instructed to wait for the device to be capable of accepting more information then the information just seems to get lost into nowhere. A WAIT statement at the end of the program will help fix this. A WAIT=0 will cause it to wait forever which may not be acceptable while a WAIT=5 may be too long depending on how much memory the printer has. 

To test this, redirect the output to a file. Check the file to see if all of the data was printed, if it was this is the problem and a WAIT will resolve the problem. 



Last Modified: 11/28/2000 Product: PRO/5 Operating System: UNIX

BASIS structures five components of their technology into the BBx Generations.

  Google+ View BASIS LinkedIN Profile Visit our Twitter Feed Check out our Facebook Public Profile Click to View the BASIS youTube channel