First, we will insert a program into the account logon to execute the print “driver” program, which is assigned by port number.
- Determine if this is going to be a slave printer or a spooled printer.
- In the data account, at TCL, update the MD item for the account name (usually PM):
U MD PM <Enter>
- Enter down to the line that reads MAIN.MENU and hit Ctrl-R to insert a line.
01 N
02 DCD-OFF
03 CASE-OFF
04 TERM-TYPE
05 PR.DRIVE.PORT
06 MAIN-MENU
- Type: PR.DRIVE.PORT <Enter>, then hit Ctrl-R again. File the item with Ctrl-X F.
Next, create (or update) the master item with the driver program name.
- Type: U MASTER PR.DRIVE.PORT <Enter>
- Press <Enter> until you get to the correct attribute number. (Attribute number=Port+1) Normally this is done for a slave printer, so the desired attribute number would be the terminal using the laser slave printer + 1.
- Type in the driver program name. There are several to choose from. They include:
17 (IBM Emulation Generic Spooled Printing – Requires SP-ASSIGN first)
17SL (IBM Emulation Generic Slave Printing)
LEX17 (Lexmark Printer - Requires SP-ASSIGN first)
LEX17SL(Lexmark Printer)
LEX12SL(12 CPI for Lexmark)
LEX10SL(10 CPI for Lexmark)
17LP.SL (OKI 810e Slave Printing)
17LP (OKI 810e Spooled Printing – Requires SP-ASSIGN first)
17HP (HP LaserJet – Requires SP-ASSIGN first)
17HP.SL (HP LaserJet)
12HP (12 CPI for HP - Requires SP-ASSIGN first)
10HP (10 CPI for HP - Requires SP-ASSIGN first)
HP.PJL 16.67(17 CPI for HP Laser Jet printer (4 and above) – Requires SP-ASSIGN first)
(If using slave, use SP-ASSIGN AS in macro)
Type Ctrl-X F to file the item.
Each time the specified port logs on, one of the above programs is executed to force the printer to a specific CPI, normally 17. If none of the above works, we will need a copy of the manual, or the pages that specify which codes will force the printer to a desired CPI.
- To connect this program to a laser printer with a printer #, you need to find the right driver program and then create a new PROC in TCL:
Example:
:U MD 17HP-3
01 N
02 SP-ASSIGN F3 *enter the PS printer # that printer is attached to
03 17HP *enter in the driver program name form list above
Crtl-X-F to file
- Then go into the U MASTER PR.DRIVER.PORT and enter in the driver program name that you just created on the specified port (Attribute number=Port+1).
Example:
022
023 17HP-3
024
*This shows the program setup for port 22 (port +1).