Infocenter

Customizing hodpdt.list and hodmodel.list

Customizing hodpdt.list
Customizing hodmodel.list

Clients running on Windows workstations only can use a locally installed printer driver to print host files. Host On-Demand uses a list file called hodpdt.list to identify a local Windows printer with a Printer Definition Table (PDT) file for a 3270 session, and a hodmodel.list file with a Printer Model for a 5250 session. Sample hodpdt.list and hodmodel.list files are provided in the samples\prt directory, and must be copied to the HOD directory before Host On-Demand can access them. PDT and Model files are provided in the HOD\pdfpdt directory. See the Host Printing Reference for more information about PDT and Model definitions, samples and instructions for customizing these files.

When a 3270 printer session is configured to use the native printer driver on a Windows platform and not to use a PDT, the hodpdt.list is not used. When editing the hodmodel.list and hodpdt.list files you must enter PDT and model names exactly as they appear in the PDT or model field of the Printer tab. The PDT and model fields are translated, so the hodpdt.list and hodmodel.list files must be in the same language as the Host On-Demand clients that are trying to use the Select Printer function. There can only be one set of printer selection list files on a Host On-Demand server, so all the clients using the Select Printer function must be in the same language as the list files.

Customizing hodpdt.list

The hodpdt.list file is an ASCII text file that contains a list of names of Windows printer drivers and associated PDT names. The file also contains a default PDT specification to be used when Host On-Demand cannot locate a PDT for the specified Windows printer driver. You can add or change entries in the hodpdt.list file using an ASCII text editor.

Sample hodpdt.list file:

# # Print Drivers and associated 3270 PDTs # # This file should contain one or more entries like the following: # # printerDriverName=3270PDTName # # This file may also contain one optional entry like the following: # # DEFAULT_PRINT_PDT=default3270PDTName # DEFAULT_PRINT_PDT=Basic ASCII text mode IBM 3130 02D PS Printer=IBM PPDS Level 2 IBM InfoPrint 20 PCL=HP PCL Level 3 (Laser Printers) Net-It-Now Driver=Basic ASCII text mode

In this example, if Host On-Demand cannot match the specified Windows printer driver with a PDT, the default printer PDT (DEFAULT_PRINT_PDT) that is used is Basic ASCII text mode. The printerDriverNames must contain the same white space and punctuation characters that appear in the printer driver names displayed on the Windows workstation. To determine the Windows printer driver name, click Start > Settings > Printers to display the icons of the printers installed on the workstation. Then right click on the printer icon and select properties. The name of the printer is listed first on the General tab. The 3270PDTNames must also contain the same white space and punctuation characters that appear in the Printer Definition Table field on the Printer tab in the 3270 printer notebook.

Customizing hodmodel.list

The hodmodel.list file is an ASCII text file that contains a list of names of Windows printer drivers and associated printer model names. The file also contains a default model specification to be used when Host On-Demand cannot locate a model for the specified Windows printer driver. You can add or change entries in the hodmodel.list file using an ASCII text editor.

Sample hodmodel.list file:

# # Print Drivers and associated 5250 printer models # # This file should contain one or more entries like the following: # # printerDriverName=5250ModelName # # This file may also contain one optional entry like the following: # # DEFAULT_PRINT_MODEL=default5250ModelName # DEFAULT_PRINT_MODEL=HP LaserJet Series II IBM 3130 02D PS Printer=IBM 3130 Advanced Function Printer IBM InfoPrint 20 PCL=IBM InfoPrint 20

In this example, if Host On-Demand cannot match the specified Windows printer driver with a Model, the default printer model (DEFAULT_PRINT_MODEL) that is used is HP LaserJet Series II. The printerDriverNames must contain the same white space and punctuation characters that appear in the printer driver names displayed on the Windows workstation. To determine the Windows printer driver name, click Start > Settings > Printers to display the icons of the printers installed on the workstation. Then right click on the printer icon and select properties. The name of the printer is listed first on the General tab. The 5250ModelNames must also contain the same white space and punctuation characters that appear in the Printer Model field on the Printer tab in the 5250 printer notebook.

Related topic: