═══ 1. Introduction ═══ PCPRINT is a program which helps you print documents on your workstation printer, formatted with running headings and footings, margins, page numbers, etc. The document can be, for example, o a PC file on disk or diskette o a VM file on your A-disk o an OfficeVision/VM note or calendar o an MVS file being browsed with TSO ISPF o a copy of whatever is on the host screen at the moment. The printing of host documents and screens can be requested from the host side, without leaving 3270 emulation. PCPRINT also helps you control your printer. You can select printer, queue, print driver and font. PCPRINT can use the Presentation Manager interface for printing and print on Postscript printers, HP Laserjet, and even plotters. Alternatively, you can use the device driver interface for printing and have PCPRINT send a control string with printer control codes and escape sequences to the printer before each document. The output from PCPRINT can be sent to any printer, or saved in a PC file for later printing. ═══ 1.1. Operating environment ═══ If PCPRINT is only used to print PC files, there are no special requirements other than OS/2. You need release 1.2 or later of OS/2, Standard Edition or Extended Edition, or OS/2 2.0 or 2.1. Printing host documents requires OS/2 Extended Edition 1.2 or 1.3, IBM Extended Services/2, or IBM Communications Manager/2. If OS/2 EE 1.2 is used, it must be at CSD level 4064 or later. The SYSLEVEL command will show your current CSD level. The PCPRINT host support is primarily made for VM. PROFS, OfficeVision/VM, and RDRLIST/PEEK users can all use PCPRINT. PCPRINT can also be used with MVS TSO, but this support is not as powerful as that for VM. ═══ 1.2. The PCPRINT package ═══ PCPRINT consists of the following files: 1. The PCPRINT program itself: PCPRINT.EXE The main OS/2 program PCPRINT.HLP The help file PCPRINT.DLL A DLL for certain PCPRINT host support functions 2. The file selection dialog (from IBM CUA Controls Library/2) FCLDLGP.DLL Dialog code FCLDRCP.DLL Dialog messages and text 3. PCPRINT.INF - PCPRINT User's Guide on line. The OS/2 command VIEW is used to read, search and print it. 4. PCPRINT EXEC and PCPRINT XEDIT - support files for VM users. They are uploaded from the PS/2 to a VM minidisk. 5. PCPRINT.TSO - a support file for MVS TSO users 6. PCPRCTRL.EXE - an optional utility used to control PCPRINT. ═══ 2. Installing PCPRINT on your PC ═══ This chapter describes how to install the "PC part" of PCPRINT. ═══ 2.1. Unpacking PCPRINT ═══ The PCPRINT package consists of the following files which are contained in ZIP file PCPRINT.ZIP on diskette 1 of the Extended Services product diskettes or on the Communications Manager/2 Productivity Aids diskette: NAME DESCRIPTION ============ ============================================ PCPRINT.EXE PCPRINT main executable PCPRINT.DLL PCPRINT DLL FCLDLGP.DLL File selection dialog FCLDRCP.DLL File selection dialog text PCPRINT.HLP PCPRINT help file PCPRINT.INF Online User's Guide for PCPRINT PCPRINT.EXC Host EXEC file for VM users PCPRINT.XED Host XEDIT profile for VM users PCPRINT.TSO PCPRINT profile for TSO users PCPRCTRL.EXE Optional utility for controlling PCPRINT from a .CMD file Note: You need at least 200 KB of DASD available on your PC in order to extract the PCPRINT package from the Extended Services product diskette. These installation instructions assume that you are familiar with using the OS/2 full screen session command line and that you wish to create a separate directory on the C drive for PCPRINT. You may substitute a different drive letter and directory name and/or omit steps where appropriate. 1. Place the diskette with PCPRINT.ZIP in diskette drive A. 2. Enter the following commands from a fullscreen or window command line session on your workstation. a. C: b. CHDIR \ These optional steps puts you in the root directory of the C drive. You may substitute any valid drive for C. c. MKDIR PCPRINT This optional step creates a directory for the PCPRINT package. You may omit this step if you already have a directory where you would prefer to have the package installed. d. CHDIR PCPRINT If you chose to use an existing directory instead of creating the PCPRINT directory in the previous step, you should substitute the name of that directory for PCPRINT on the CHDIR command. e. PKUNZIP2 A:PCPRINT.ZIP The PCPRINT files will be installed on your workstation. The PKUNZIP2 command was installed in directory \OS2\INSTALL by the Extended Services installation procedure. ═══ 2.2. Updating CONFIG.SYS ═══ Use the system editor to edit CONFIG.SYS. Add directory C:\PCPRINT to the following statements: LIBPATH= SET PATH= SET HELP= SET BOOKSHELF= This is required only if you created a PCPRINT directory during installation. If you did not create this directory, ensure that the PCPRINT files are installed as follows: CONFIG.SYS statement must list the directory with LIBPATH= PCPRINT.DLL, FCLDLGP.DLL and FCLDRCP.DLL SET PATH= PCPRINT.EXE SET HELP= PCPRINT.HLP SET BOOKSHELF= PCPRINT.INF Note: For help to work, the SET HELP= line must list C:\OS2\HELP also. If you made changes to CONFIG.SYS, you must re-boot your workstation before you can use PCPRINT. ═══ 2.3. Defining PCPRINT to OS/2 - OS/2 1.3 ═══ Add PCPRINT to Group - Utilities or any other group. This is done the normal way. See the OS/2 User's Guide. Specify the PCPRINT directory as "Working directory". If you want PCPRINT to start automatically when the system is booted, select that option when you add PCPRINT to the Program Group. Or put a start command in STARTUP.CMD. For example: start "PCPRINT" c:\pcprint\pcprint.exe profile=c:\pcprint\pcprint.pro PCPRINT can be started before or after Communications Manager. PCPRINT will automatically activate the Host Print function when a host session becomes active. If you want PCPRINT to start minimized (i.e., as an icon), select that option when you add PCPRINT to the Program Group. Or use the following procedure: 1. Start PCPRINT 2. Minimize its window (click the down-arrow) 3. Find the Desktop Manager window 4. Select "Save..." from the "Desktop" menu. The choices on the "Print" menu are also available from the System Menu. This means you don't have to restore the PCPRINT window to see and select these options. Just click once on the PCPRINT icon. ═══ 2.4. Defining PCPRINT to OS/2 - OS/2 2.0 or 2.1 ═══ Start by dragging a Program icon from the Templates folder to the desired location. You can put PCPRINT in the Productivity system folder, or in any folder you want, or even place it on the desktop. In the PCPRINT Settings notebook, on the Program page, enter the following: o Path and file name: c:\pcprint\pcprint.exe o Parameters: %* profile=c:\pcprint\pcprint.pro o Working directory: c:\pcprint The %* will be replaced by the file name when a file icon is dropped on PCPRINT. On the General page, enter PCPRINT as the title. ═══ 2.5. Considerations for LAN printing ═══ If you are connected to a LAN and want to be able to have the output from PCPRINT printed on a print server, this is what you have to do: 1. Make sure the print driver (IBM4207.DRV for example) that is used on the print server is installed in your workstation also. It should even be the same version. 2. Start the LAN Requester and assign the LAN printer to a printer port (LPT3 for example). 3. Go into Print Manager's Setup menu. Create a printer with a unique name (LAN4207 for example) and assign it to the same port (LPT3). Select the same print driver (IBM4207) as used by the real LAN printer. Click "Printer Properties..." and specify the same form and other options as used on the server. 4. Go into Print Manager's Setup menu. Create a dummy queue (LPT3Q for example ) for the printer. Put this queue in hold. The output will be queued in the queue on the server instead. But the dummy queue is required in order for PCPRINT to find the LAN printer. 5. Before printing a document, use PCPRINT's Printer menu to set the destination to LPT3 or LAN4207. 6. Be aware that the Print Manager display is not always automatically refreshed for LAN jobs. To see the LAN jobs, select Refresh - Refresh Now. ═══ 3. Installing the VM support for PCPRINT ═══ The VM support for PCPRINT consists of two files: PCPRINT EXEC and PCPRINT XEDIT. It makes it easy to print PROFS or OfficeVision/VM notes, CMS files, documents formatted with SCRIPT or DisplayWrite/370, files in your reader, etc. ═══ 3.1. Uploading PCPRINT EXEC and PCPRINT XEDIT ═══ 1. Install Communications Manager. Make sure that the configuration file you install is configured with at least one 3270 terminal emulation session. 2. Start Communications Manager and the 3270 emulator session. Use the emulator to logon to the VM host where you wish to install the host files required by PCPRINT. 3. Ensure your VM session is at CMS Ready state. 4. Use the Extended Services Communications Manager SEND command to upload the host files as follows: SEND PCPRINT.EXC id:PCPRINT EXEC A (LRECL 1024 RECFM F SEND PCPRINT.XED id:PCPRINT XEDIT A (LRECL 1024 RECFM F Note: "id" is the identifier of the host emulation session where you wish to install the host files. It may be for example a, b, c, d or e. Enter HELP SEND for more information on the Communications Manager SEND command. 5. Go to you host session and execute the following commands to unpack the VM support files: COPY PCPRINT EXEC A = = A (Replace Unpack COPY PCPRINT XEDIT A = = A (Replace Unpack ═══ 3.2. Customizing OfficeVision/VM ═══ Use one of the two methods below. ═══ 3.2.1. Method 1 ═══ Create a file named WORKSTAT FILE on one of the CMS disks you are accessing. It must have RECFM=F and LRECL=80 and contain exactly the following five lines: PC EPSIPCWS TESTPC PC Print the document using PCPRINT PC PCPRINT WORKSTAT PC PC All five records have "PC" in columns 1-2. Note the "WORKSTAT" parameter. ═══ 3.2.2. Method 2 ═══ Add a line like the following to the OfficeVision/VM file $$PRNT$$ $$FILE$$: PCPRINT 3270 Print the document using PCPRINT 1403 EXEC PCPRINT PRNTFILE Note the "PRNTFILE" parameter. $$PRNT$$ $$FILE$$ should have RECFM=F and LRECL=100. Several printer definitions can be added, with different options. To provide more space for options, PRNTFILE can be abbreviated to PF. No option can be longer than eight characters. Example (only columns 14 through 100 are shown): PCPRINT the document - draft quality 1403 EXEC PCPRINT PRNTFILE I=0 PCPRINT the document - near letter quality 1403 EXEC PCPRINT PRNTFILE I=2 PCPRINT the document - double spaced and nlq 1403 EXEC PCPRINT PF DS I=2 PCPRINT the document - FOILS style 1403 EXEC PCPRINT PF G W=1 PCPRINT the document - force ANSI ctl chars 1403 EXEC PCPRINT PF ANSI For more information about the options see the next chapter. ═══ 3.3. Customzing PEEK ═══ If you normally use the standard PROFPEEK profile for PEEK, give the command DEFAULTS SET PEEK PROFILE PCPRINT FOR * (If you don't know which your PEEK profile is, the command DEFAULTS LIST PEEK will tell you.) Use of PCPRINT XEDIT as your PEEK profile will result in slightly faster and easier printing of notes. But it is not mandatory. ═══ 3.4. Customizing PCPRINT for National Language Support ═══ If you are using a translated version of OS/2, and/or a non-U.S. keyboard, you have to customize PCPRINT for National Language Support to be able to use the host print support. ═══ 4. Using PCPRINT Base Functions ═══ This chapter describes the PCPRINT functions for printing PC files, as opposed to VM or MVS files. ═══ 4.1. Reading PCPRINT User's Guide On Line ═══ PCPRINT.INF is the on-line version of PCPRINT User's Guide and Reference. Use the OS/2 command VIEW to view it: view pcprint This assumes that the directory containing PCPRINT.INF is listed in SET BOOKSHELF= in CONFIG.SYS. If not, you must use a fully qualified file name, for example view d:\pcprint\pcprint.inf ═══ 4.2. Starting PCPRINT ═══ To start PCPRINT, enter a PCPRINT command from the OS/2 command prompt, or select PCPRINT from the Program Group or folder where you installed it. PCPRINT takes a number of options as parameters: pcprint