Error 3018 is an attempt to write to a read-only item. In this case, I suspect that the P7 file already exists but was created by a different user. Fixing the file's permissions will sort this out.
Original Message:
Sent: 3/22/2024 1:43:00 PM
From: Steve Henkel
Subject: RE: Sending a hold file to the printer
Martin, I couldn't act on your proposed solution until now. This actually makes sense. I was thinking that there was something like that going on but didn't know how to compensate for it. There are some concepts about the spooler that I've never quite grasped but what I did was issue the SETPTR command with the added ",NFMT" on the end just before I used the SPOOL command (I'm assuming that SPOOL and the output from SP.VIEW are essentially the same).
It didn't like it. Oh, the SETPTR command with NFMT executed without any apparent problem. But, when I went to use the SPOOL command right after that it dumped the process state and gave me an error of "000002DA: Unable to create print file 0, '/usr/qmsys/prt/p7' [3018] in $SPOOL"
Am I missing something?
------------------------------
Steve Henkel
Director of IS
Rocket Forum Shared Account
------------------------------
Original Message:
Sent: 03-12-2024 07:40
From: Martin Phillips
Subject: Sending a hold file to the printer
This may be a case of double formatting.
When QM creates the output document it apples formatting by inserting a page break at the right places. When you then spool the hold file formatting is applied again giving the blank pages that you are seeing.
The solution is that either the program output or the spool command must use the NFMT option in the SETPTR command.
Martin
------------------------------
Martin Phillips
Rocket Forum Shared Account
Original Message:
Sent: 03-08-2024 22:43
From: Brian Speirs
Subject: Sending a hold file to the printer
Well, there are multiple ways of doing this. First, a disclaimer - we don't do any of these ... we output everything as an Excel spreadsheet, and then use Excel to output stuff to a printer.
The "Official" way is to use the SPOOL command. This command should look something like: SPOOL $HOLD item-name LPTR n (where n is the print unit number). Alternatively, you could use the SP.VIEW command which displays the output ... and you can then choose to send it to the printer (print unit).
If your output in $HOLD is in PCL format, then you might want to expose the $HOLD folder as a mapped drive (or shared folder), then use a PCL Viewer to open the document, and print to a printer.
Even if the output is in plain text format, you might still want to expose the $HOLD folder as above, and open the item in Notepad or Notepad++ and print from there.
I hope that helps.
Brian
------------------------------
Brian Speirs
Senior Analyst - Information Systems
Rush Flat Ltd
Wellington NZ
Original Message:
Sent: 03-05-2024 11:53
From: Steve Henkel
Subject: Sending a hold file to the printer
I think I am missing something basic with the spooler. For a long time our company was using D3 and the way our software was setup, whenever something was to be printed, it would first generate a hold file and then the user could send the hold file to the printer at their leisure.
When we switched to QM I just had things go immediately to the printer because for the life of me I couldn't figure out how to send a hold file to the printer after the fact. I know this is something very basic but I just don't see it. The solution must be in some mental blind spot of mine.
Can someone help me with this?
------------------------------
Steve Henkel
CIO
Rocket Forum Shared Account
------------------------------