× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hi Everyone,
I have a program that writes to two printer files. The first file QSYSPRT gets opened, written, and closed. The second printer file TICKET, gets opened, written, and closed after the QSYSPRT file. The program this code runs in is a asynchronous job that reads a message queue, so the job never ends. History: The program will receive a work order number from the message queue and print some paperwork using QSYSPRT and TICKET printer files. The problem: When I first start the job and send a work order number to the message queue, the program picks up the number and prints the paperwork perfectly, if I send another work order number to the message queue the program sends a message to the QSYSOPR message queue that the program tried to write to a closed file TICKET. I have double checked the code and I feel the TICKET file is being closed after the first work order is printed. I created a debug breakpoint at the start of the program. The program breaks at the beginning of the program when the first work order is read. But when the second work order is read, the program does not break and a message is sent to QSYSOPR. I am stumped. Any help would highly be appreciated.


Justin

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.