OSBRITEing to Printer Ports on Win2000 (AREV Specific)
At 02 NOV 2000 11:31:03PM TJ Lillyman wrote:
Cna anybody help?
I am utilising OSBWRITE to Spool Print Jobs to Printer Ports
Printer Ports are Captured on Novell 5.0 to Network Printers
I OSBREAD and OSBWRITE Data in 1000 Byte blocks until the Spooled report is finished.
On Win9x and DOS this process works like a dream
On Win2000 only the FIRST block gets sent to the Printer.
It appears that the Win2000 is closing the Printer Ports at the end of the first block
If I increase the block size to 10,000 I get the first block of 10,000 characters and then nothing
To get around this I have increased the block size to 60,000 over which the process does a PDISK to the Printer Port and then performs a RECORDCOPY of the record to the Printer Port.
Any ideas on why Win2000 is doing this or is it something in the Printer Drivers/Capture Settings ??
I've had a look but can't see anything obvious.
Many thanks
Tony
At 03 NOV 2000 09:36AM dale walker wrote:
Tony,
If you are using a Novell capture, What are your timeouts? You may wish to double them. Normally it should be set to 10 but try increasing them and see what happens.
Dale
At 03 NOV 2000 03:30PM Don Miller - C3 Inc. wrote:
Since OSBWRITE is essentially a block-device write which may cause the printer to timeout while the I/O is being processed, I would probably try turning off AUTOENDCAP for the printer capture statement ahead of the job. Then do your I/O. Next do a SUSPEND EXIT CAPTURE /ENDCAP ] NUL to release the job. Then re-capture the printer again with a normal timeout TI=10 .. 30 or whatever you need.
Maybe this will help???
Don Miller
C3 Inc.