home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 19 Printer / 19-Printer.zip / pcprint.zip / PCPRINT.INF (.txt) < prev    next >
OS/2 Help File  |  1993-06-16  |  50KB  |  2,083 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction ΓòÉΓòÉΓòÉ
  3.  
  4. PCPRINT is a program which helps you print documents on your workstation 
  5. printer, formatted with running headings and footings, margins, page numbers, 
  6. etc. 
  7.  
  8. The document can be, for example, 
  9.  
  10.  o a PC file on disk or diskette 
  11.  
  12.  o a VM file on your A-disk 
  13.  
  14.  o an OfficeVision/VM note or calendar 
  15.  
  16.  o an MVS file being browsed with TSO ISPF 
  17.  
  18.  o a copy of whatever is on the host screen at the moment. 
  19.  
  20.  The printing of host documents and screens can be requested from the host 
  21.  side, without leaving 3270 emulation. 
  22.  
  23.  PCPRINT also helps you control your printer. You can select printer, queue, 
  24.  print driver and font. PCPRINT can use the Presentation Manager interface for 
  25.  printing and print on Postscript printers, HP Laserjet, and even plotters. 
  26.  Alternatively, you can use the device driver interface for printing and have 
  27.  PCPRINT send a control string with printer control codes and escape sequences 
  28.  to the printer before each document. 
  29.  
  30.  The output from PCPRINT can be sent to any printer, or saved in a PC file for 
  31.  later printing. 
  32.  
  33.  
  34. ΓòÉΓòÉΓòÉ 1.1. Operating environment ΓòÉΓòÉΓòÉ
  35.  
  36. If PCPRINT is only used to print PC files, there are no special requirements 
  37. other than OS/2. You need release 1.2 or later of OS/2, Standard Edition or 
  38. Extended Edition, or OS/2 2.0 or 2.1. 
  39.  
  40. Printing host documents requires OS/2 Extended Edition 1.2 or 1.3, IBM Extended 
  41. Services/2, or IBM Communications Manager/2. 
  42.  
  43. If OS/2 EE 1.2 is used, it must be at CSD level 4064 or later. The SYSLEVEL 
  44. command will show your current CSD level. 
  45.  
  46. The PCPRINT host support is primarily made for VM. PROFS, OfficeVision/VM, and 
  47. RDRLIST/PEEK users can all use PCPRINT. PCPRINT can also be used with MVS TSO, 
  48. but this support is not as powerful as that for VM. 
  49.  
  50.  
  51. ΓòÉΓòÉΓòÉ 1.2. The PCPRINT package ΓòÉΓòÉΓòÉ
  52.  
  53. PCPRINT consists of the following files: 
  54.  
  55.   1. The PCPRINT program itself: 
  56.  
  57.           PCPRINT.EXE   The main OS/2 program
  58.           PCPRINT.HLP   The help file
  59.           PCPRINT.DLL   A DLL for certain PCPRINT host support functions
  60.  
  61.   2. The file selection dialog (from IBM CUA Controls Library/2) 
  62.  
  63.           FCLDLGP.DLL   Dialog code
  64.           FCLDRCP.DLL   Dialog messages and text
  65.  
  66.   3. PCPRINT.INF - PCPRINT User's Guide on line. The OS/2 command VIEW is used 
  67.      to read, search and print it. 
  68.  
  69.   4. PCPRINT EXEC and PCPRINT XEDIT - support files for VM users. They are 
  70.      uploaded from the PS/2 to a VM minidisk. 
  71.  
  72.   5. PCPRINT.TSO - a support file for MVS TSO users 
  73.  
  74.   6. PCPRCTRL.EXE - an optional utility used to control PCPRINT. 
  75.  
  76.  
  77. ΓòÉΓòÉΓòÉ 2. Installing PCPRINT on your PC ΓòÉΓòÉΓòÉ
  78.  
  79. This chapter describes how to install the "PC part" of PCPRINT. 
  80.  
  81.  
  82. ΓòÉΓòÉΓòÉ 2.1. Unpacking PCPRINT ΓòÉΓòÉΓòÉ
  83.  
  84. The PCPRINT package consists of the following files which are contained in ZIP 
  85. file PCPRINT.ZIP on diskette 1 of the Extended Services product diskettes or on 
  86. the Communications Manager/2 Productivity Aids diskette: 
  87.  
  88. NAME            DESCRIPTION
  89. ============    ============================================
  90. PCPRINT.EXE     PCPRINT main executable
  91. PCPRINT.DLL     PCPRINT DLL
  92. FCLDLGP.DLL     File selection dialog
  93. FCLDRCP.DLL     File selection dialog text
  94. PCPRINT.HLP     PCPRINT help file
  95. PCPRINT.INF     Online User's Guide for PCPRINT
  96. PCPRINT.EXC     Host EXEC file for VM users
  97. PCPRINT.XED     Host XEDIT profile for VM users
  98. PCPRINT.TSO     PCPRINT profile for TSO users
  99. PCPRCTRL.EXE    Optional utility for controlling PCPRINT from a .CMD file
  100.  
  101. Note:  You need at least 200 KB of DASD available on your PC in order to 
  102. extract the PCPRINT package from the Extended Services product diskette. 
  103.  
  104. These installation instructions assume that you are familiar with using the 
  105. OS/2 full screen session command line and that you wish to create a separate 
  106. directory on the C drive for PCPRINT. You may substitute a different drive 
  107. letter and directory name and/or omit steps where appropriate. 
  108.  
  109.   1. Place the diskette with PCPRINT.ZIP in diskette drive A. 
  110.  
  111.   2. Enter the following commands from a fullscreen or window command line 
  112.      session on your workstation. 
  113.  
  114.      a. C: 
  115.  
  116.      b. CHDIR \ 
  117.  
  118.         These optional steps puts you in the root directory of the C drive. You 
  119.         may substitute any valid drive for C. 
  120.  
  121.      c. MKDIR PCPRINT 
  122.  
  123.         This optional step creates a directory for the PCPRINT package. You may 
  124.         omit this step if you already have a directory where you would prefer 
  125.         to have the package installed. 
  126.  
  127.      d. CHDIR PCPRINT 
  128.  
  129.         If you chose to use an existing directory instead of creating the 
  130.         PCPRINT directory in the previous step, you should substitute the name 
  131.         of that directory for PCPRINT on the CHDIR command. 
  132.  
  133.      e. PKUNZIP2  A:PCPRINT.ZIP 
  134.  
  135.         The PCPRINT files will be installed on your workstation. The PKUNZIP2 
  136.         command was installed in directory \OS2\INSTALL by the Extended 
  137.         Services installation procedure. 
  138.  
  139.  
  140. ΓòÉΓòÉΓòÉ 2.2. Updating CONFIG.SYS ΓòÉΓòÉΓòÉ
  141.  
  142. Use the system editor to edit CONFIG.SYS. Add directory C:\PCPRINT to the 
  143. following statements: 
  144.  
  145.  LIBPATH=
  146.  SET PATH=
  147.  SET HELP=
  148.  SET BOOKSHELF=
  149.  
  150. This is required only if you created a PCPRINT directory during installation. 
  151. If you did not create this directory, ensure that the PCPRINT files are 
  152. installed as follows: 
  153.  
  154.  CONFIG.SYS statement          must list the directory with 
  155.  
  156.  LIBPATH=                      PCPRINT.DLL, FCLDLGP.DLL and FCLDRCP.DLL 
  157.  
  158.  SET PATH=                     PCPRINT.EXE 
  159.  
  160.  SET HELP=                     PCPRINT.HLP 
  161.  
  162.  SET BOOKSHELF=                PCPRINT.INF 
  163.  
  164.  Note:  For help to work, the SET HELP= line must list C:\OS2\HELP also. 
  165.  
  166.  If you made changes to CONFIG.SYS, you must re-boot your workstation before 
  167.  you can use PCPRINT. 
  168.  
  169.  
  170. ΓòÉΓòÉΓòÉ 2.3. Defining PCPRINT to OS/2 - OS/2 1.3 ΓòÉΓòÉΓòÉ
  171.  
  172. Add PCPRINT to Group - Utilities or any other group. This is done the normal 
  173. way. See the OS/2 User's Guide. Specify the PCPRINT directory as "Working 
  174. directory". 
  175.  
  176. If you want PCPRINT to start automatically when the system is booted, select 
  177. that option when you add PCPRINT to the Program Group. Or put a start command 
  178. in STARTUP.CMD. For example: 
  179.  
  180. start "PCPRINT" c:\pcprint\pcprint.exe profile=c:\pcprint\pcprint.pro
  181.  
  182. PCPRINT can be started before or after Communications Manager. PCPRINT will 
  183. automatically activate the Host Print function when a host session becomes 
  184. active. 
  185.  
  186. If you want PCPRINT to start minimized (i.e., as an icon), select that option 
  187. when you add PCPRINT to the Program Group. Or use the following procedure: 
  188.  
  189.   1. Start PCPRINT 
  190.   2. Minimize its window (click the down-arrow) 
  191.   3. Find the Desktop Manager window 
  192.   4. Select "Save..." from the "Desktop" menu. 
  193.  
  194.  The choices on the "Print" menu are also available from the System Menu. This 
  195.  means you don't have to restore the PCPRINT window to see and select these 
  196.  options. Just click once on the PCPRINT icon. 
  197.  
  198.  
  199. ΓòÉΓòÉΓòÉ 2.4. Defining PCPRINT to OS/2 - OS/2 2.0 or 2.1 ΓòÉΓòÉΓòÉ
  200.  
  201. Start by dragging a Program icon from the Templates folder to the desired 
  202. location. You can put PCPRINT in the Productivity system folder, or in any 
  203. folder you want, or even place it on the desktop. 
  204.  
  205. In the PCPRINT Settings notebook, on the Program page, enter the following: 
  206.  
  207.  o Path and file name: c:\pcprint\pcprint.exe 
  208.  
  209.  o Parameters: %* profile=c:\pcprint\pcprint.pro 
  210.  
  211.  o Working directory: c:\pcprint 
  212.  
  213.  The %* will be replaced by the file name when a file icon is dropped on 
  214.  PCPRINT. 
  215.  
  216.  On the General page, enter PCPRINT as the title. 
  217.  
  218.  
  219. ΓòÉΓòÉΓòÉ 2.5. Considerations for LAN printing ΓòÉΓòÉΓòÉ
  220.  
  221. If you are connected to a LAN and want to be able to have the output from 
  222. PCPRINT printed on a print server, this is what you have to do: 
  223.  
  224.   1. Make sure the print driver (IBM4207.DRV for example) that is used on the 
  225.      print server is installed in your workstation also. It should even be the 
  226.      same version. 
  227.  
  228.   2. Start the LAN Requester and assign the LAN printer to a printer port (LPT3 
  229.      for example). 
  230.  
  231.   3. Go into Print Manager's Setup menu. Create a printer with a unique name 
  232.      (LAN4207 for example) and assign it to the same port (LPT3). Select the 
  233.      same print driver (IBM4207) as used by the real LAN printer. Click 
  234.      "Printer Properties..." and specify the same form and other options as 
  235.      used on the server. 
  236.  
  237.   4. Go into Print Manager's Setup menu. Create a dummy queue (LPT3Q for 
  238.      example ) for the printer. Put this queue in hold. The output will be 
  239.      queued in the queue on the server instead. But the dummy queue is required 
  240.      in order for PCPRINT to find the LAN printer. 
  241.  
  242.   5. Before printing a document, use PCPRINT's Printer menu to set the 
  243.      destination to LPT3 or LAN4207. 
  244.  
  245.   6. Be aware that the Print Manager display is not always automatically 
  246.      refreshed for LAN jobs. To see the LAN jobs, select Refresh - Refresh Now. 
  247.  
  248.  
  249. ΓòÉΓòÉΓòÉ 3. Installing the VM support for PCPRINT ΓòÉΓòÉΓòÉ
  250.  
  251. The VM support for PCPRINT consists of two files: PCPRINT EXEC and PCPRINT 
  252. XEDIT. 
  253.  
  254. It makes it easy to print PROFS or OfficeVision/VM notes, CMS files, documents 
  255. formatted with SCRIPT or DisplayWrite/370, files in your reader, etc. 
  256.  
  257.  
  258. ΓòÉΓòÉΓòÉ 3.1. Uploading PCPRINT EXEC and PCPRINT XEDIT ΓòÉΓòÉΓòÉ
  259.  
  260.   1. Install Communications Manager. Make sure that the configuration file you 
  261.      install is configured with at least one 3270 terminal emulation session. 
  262.  
  263.   2. Start Communications Manager and the 3270 emulator session. Use the 
  264.      emulator to logon to the VM host where you wish to install the host files 
  265.      required by PCPRINT. 
  266.  
  267.   3. Ensure your VM session is at CMS Ready state. 
  268.  
  269.   4. Use the Extended Services Communications Manager SEND command to upload 
  270.      the host files as follows: 
  271.  
  272.            SEND  PCPRINT.EXC id:PCPRINT EXEC A  (LRECL 1024 RECFM F
  273.            SEND  PCPRINT.XED id:PCPRINT XEDIT A (LRECL 1024 RECFM F
  274.  
  275.      Note:  "id" is the identifier of the host emulation session where you wish 
  276.      to install the host files. It may be for example a, b, c, d or e. 
  277.  
  278.      Enter HELP SEND for more information on the Communications Manager SEND 
  279.      command. 
  280.  
  281.   5. Go to you host session and execute the following commands to unpack the VM 
  282.      support files: 
  283.  
  284.            COPY  PCPRINT  EXEC   A = = A (Replace Unpack
  285.            COPY  PCPRINT  XEDIT  A = = A (Replace Unpack
  286.  
  287.  
  288. ΓòÉΓòÉΓòÉ 3.2. Customizing OfficeVision/VM ΓòÉΓòÉΓòÉ
  289.  
  290. Use one of the two methods below. 
  291.  
  292.  
  293. ΓòÉΓòÉΓòÉ 3.2.1. Method 1 ΓòÉΓòÉΓòÉ
  294.  
  295. Create a file named WORKSTAT FILE on one of the CMS disks you are accessing. It 
  296. must have RECFM=F and LRECL=80 and contain exactly the following five lines: 
  297.  
  298. PC EPSIPCWS TESTPC
  299. PC Print the document using PCPRINT
  300. PC PCPRINT WORKSTAT
  301. PC
  302. PC
  303.  
  304. All five records have "PC" in columns 1-2. Note the "WORKSTAT" parameter. 
  305.  
  306.  
  307. ΓòÉΓòÉΓòÉ 3.2.2. Method 2 ΓòÉΓòÉΓòÉ
  308.  
  309. Add a line like the following to the OfficeVision/VM file $$PRNT$$ $$FILE$$: 
  310.  
  311. PCPRINT 3270 Print the document using PCPRINT     1403 EXEC PCPRINT PRNTFILE
  312.  
  313. Note the "PRNTFILE" parameter. 
  314.  
  315. $$PRNT$$ $$FILE$$ should have RECFM=F and LRECL=100. 
  316.  
  317. Several printer definitions can be added, with different options. 
  318.  
  319. To provide more space for options, PRNTFILE can be abbreviated to PF. No option 
  320. can be longer than eight characters. 
  321.  
  322. Example (only columns 14 through 100 are shown): 
  323.  
  324. PCPRINT the document - draft quality         1403 EXEC PCPRINT PRNTFILE I=0
  325. PCPRINT the document - near letter quality   1403 EXEC PCPRINT PRNTFILE I=2
  326. PCPRINT the document - double spaced and nlq 1403 EXEC PCPRINT PF DS I=2
  327. PCPRINT the document - FOILS style           1403 EXEC PCPRINT PF G W=1
  328. PCPRINT the document - force ANSI ctl chars  1403 EXEC PCPRINT PF ANSI
  329.  
  330. For more information about the options see the next chapter. 
  331.  
  332.  
  333. ΓòÉΓòÉΓòÉ 3.3. Customzing PEEK ΓòÉΓòÉΓòÉ
  334.  
  335. If you normally use the standard PROFPEEK profile for PEEK, give the command 
  336.  
  337.   DEFAULTS SET PEEK PROFILE PCPRINT FOR *
  338.  
  339. (If you don't know which your PEEK profile is, the command DEFAULTS LIST PEEK 
  340. will tell you.) 
  341.  
  342. Use of PCPRINT XEDIT as your PEEK profile will result in slightly faster and 
  343. easier printing of notes. But it is not mandatory. 
  344.  
  345.  
  346. ΓòÉΓòÉΓòÉ 3.4. Customizing PCPRINT for National Language Support ΓòÉΓòÉΓòÉ
  347.  
  348. If you are using a translated version of OS/2, and/or a non-U.S. keyboard, you 
  349. have to customize PCPRINT for National Language Support to be able to use the 
  350. host print support. 
  351.  
  352.  
  353. ΓòÉΓòÉΓòÉ 4. Using PCPRINT Base Functions ΓòÉΓòÉΓòÉ
  354.  
  355. This chapter describes the PCPRINT functions for printing PC files, as opposed 
  356. to VM or MVS files. 
  357.  
  358.  
  359. ΓòÉΓòÉΓòÉ 4.1. Reading PCPRINT User's Guide On Line ΓòÉΓòÉΓòÉ
  360.  
  361. PCPRINT.INF is the on-line version of PCPRINT User's Guide and Reference. Use 
  362. the OS/2 command VIEW to view it: 
  363.  
  364. view pcprint
  365.  
  366. This assumes that the directory containing PCPRINT.INF is listed in SET 
  367. BOOKSHELF= in CONFIG.SYS. If not, you must use a fully qualified file name, for 
  368. example 
  369.  
  370. view d:\pcprint\pcprint.inf
  371.  
  372.  
  373. ΓòÉΓòÉΓòÉ 4.2. Starting PCPRINT ΓòÉΓòÉΓòÉ
  374.  
  375. To start PCPRINT, enter a PCPRINT command from the OS/2 command prompt, or 
  376. select PCPRINT from the Program Group or folder where you installed it. 
  377.  
  378. PCPRINT takes a number of options as parameters: 
  379.  
  380. pcprint <option> <option> ...
  381.  
  382. These options allow you to control the printing. They are explained below. 
  383.  
  384. Examples: 
  385.  
  386. pcprint
  387. pcprint dest=LPT2
  388. pcprint pl=66 tm=5 rh="File %f printed on 19%y-%m-%d"
  389.  
  390. PCPRINT will display a window similar to this: 
  391.  
  392. ΓöîΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÉ
  393. Γöé                    PCPRINT                         Γöé
  394. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  395. Γöé Profile   Printer   Session  Options  Print  Help  Γöé
  396. Γö£ΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöñ
  397. Γöé                                                    Γöé
  398. Γöé Current profile:       PCPRINT.PRO                 Γöé
  399. Γöé                                                    Γöé
  400. Γöé Printing to:           LPT1                        Γöé
  401. Γöé                                                    Γöé
  402. Γöé Host Print status:     Inactive                    Γöé
  403. Γöé                                                    Γöé
  404. Γöé Current host session:  None (AUTO)                 Γöé
  405. Γöé                                                    Γöé
  406. ΓööΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÇΓöÿ
  407.  
  408.  
  409. ΓòÉΓòÉΓòÉ 4.3. Using profiles ΓòÉΓòÉΓòÉ
  410.  
  411. The way PCPRINT prints documents is controlled through a number of options. 
  412. These options can be entered 
  413.  
  414.   1. as command line parameters when PCPRINT.EXE is started, 
  415.  
  416.   2. using PCPRINT pull-down menus and associated panels, and 
  417.  
  418.   3. in a profile. 
  419.  
  420.  A profile is a regular ASCII file containing option keywords and values. The 
  421.  default name for this file is PCPRINT.PRO, but you can use any name. When 
  422.  started, PCPRINT will look for PCPRINT.PRO in the current directory, and use 
  423.  it if it finds it, unless you specify a different initial profile. For 
  424.  example: 
  425.  
  426.   pcprint profile=report5.pro
  427.  
  428.  Once PCPRINT is running, you can use the Profile pull-down menu to 
  429.  
  430.   1. Load a new profile (Open) 
  431.  
  432.   2. Reset all PCPRINT options to their default values (New) 
  433.  
  434.   3. Update the current profile with any changed options (Save) 
  435.  
  436.   4. Create a new profile (or overwrite an existing one) (Save As...) 
  437.  
  438.  The recommended way of creating a PCPRINT profile is using the Save As... 
  439.  option under Profiles, but you can also create one using a text editor. Each 
  440.  line has one of these formats: 
  441.  
  442.   keyword
  443.   keyword=value<,value><,value>...
  444.   keyword="string"
  445.  
  446.  Example of what a profile might contain: 
  447.  
  448.   DS
  449.   PL=66
  450.   RH="For XYZ Company Internal Use Only"
  451.  
  452.  
  453. ΓòÉΓòÉΓòÉ 4.4. The Printer menu ΓòÉΓòÉΓòÉ
  454.  
  455. The output from PCPRINT can be directed to different destinations: 
  456.  
  457.   1. PCPRINT can send the output directly to a LPTx or COMx port, using what is 
  458.      known as the device driver interface for printing. LPT1, LPT2, LPT3, COM1, 
  459.      COM2 or COM3 can be selected directly from the Printer menu. If, in a LAN 
  460.      environment, you want to print to LPT4 or higher, you can do so by putting 
  461.      DEST=LPT4 in a profile. 
  462.  
  463.      If the OS/2 print spooler is started, it will intercept the output and 
  464.      hold it in a print queue until the printer is ready to receive it. 
  465.  
  466.      If you select LPTx/COMx from the Printer menu, you will be presented the 
  467.      "Printer control string" dialog. This allows you to enter an optional 
  468.      string which is sent to the printer immediately before each document and 
  469.      is used to set font, forms length, drawer, etc. More about this later. 
  470.  
  471.   2. PCPRINT can use the Presentation Manager interface for printing. This is 
  472.      usually a bit slower than the first method, but has many advantages: 
  473.  
  474.     o You can use Postscript printers, HP Laserjet printers, and even plotters. 
  475.  
  476.     o You can select font and character size. 
  477.  
  478.     o The print driver will often allow you to print sideways (landscape 
  479.       printing), use low or high resolution, print several copies, and more. 
  480.  
  481.       You request this method by selecting one of the printer names listed in 
  482.       the Printer menu. You will then be presented the "Specify queue, driver 
  483.       and font" dialog described later. 
  484.  
  485.       This method requires that the OS/2 print spooler is started. 
  486.  
  487.   3. PCPRINT can send the output to a file on disk or diskette. The file will 
  488.      be created if it doesn't exist, or appended if it already exists. 
  489.  
  490.      You request this method by selecting "File..." in the Printer menu. You 
  491.      will then be presented a file name dialog. 
  492.  
  493.  You can change the destination at any time using the Printer pull-down menu. 
  494.  
  495.  The print destination can also be set with the DEST keyword as a parameter to 
  496.  PCPRINT.EXE or in a profile. For direct output, specify DEST="LPTx" or 
  497.  DEST="COMx". For PM output, specify DEST="PRINTER" and PRINTER="printer name". 
  498.  In this case you must also specify queue, driver and font - more below. For 
  499.  output to a file, specify DEST="file name". 
  500.  
  501.  
  502. ΓòÉΓòÉΓòÉ 4.5. The Session menu ΓòÉΓòÉΓòÉ
  503.  
  504. This menu is only used when working with host documents and OS/2 Extended 
  505. Edition or IBM Extended Services/2. 
  506.  
  507. If no 3270 sessions are started, selecting Sessions will just give you a 
  508. message saying "There are no host sessions". 
  509.  
  510.  
  511. ΓòÉΓòÉΓòÉ 4.6. Printing options ΓòÉΓòÉΓòÉ
  512.  
  513. PCPRINT supports several mechanisms for controlling how a document is printed: 
  514.  
  515.   1. Page Layout options for setting margins, headings, footings, etc. 
  516.  
  517.   2. Form Feed options for adding or removing form feeds etc. 
  518.  
  519.   3. The Printer Control String. This is ignored for PM output. 
  520.  
  521.   4. Print driver data and font name, when using the Presentation Manager 
  522.      interface for printing. 
  523.  
  524.  These options can be entered 
  525.  
  526.   1. as command line parameters when PCPRINT.EXE is started 
  527.  
  528.   2. in a PCPRINT profile 
  529.  
  530.   3. through the following Options menu choices: 
  531.  
  532.     o Page Layout... 
  533.  
  534.     o Form Feeds... 
  535.  
  536.   4. through the "Printer Control String" dialog 
  537.  
  538.   5. through the "Specify queue, driver and font" dialog. 
  539.  
  540.  If the same option is specified both as a command line parameter and in the 
  541.  initial profile, the command line parameter will override the profile. 
  542.  
  543.  
  544. ΓòÉΓòÉΓòÉ 4.6.1. Page Layout options ΓòÉΓòÉΓòÉ
  545.  
  546. The Page Layout options affect the layout of the printed page. You can define 
  547. margins at the top, the bottom and the left side, as well as running headings 
  548. and footings. 
  549.  
  550. Number of lines per page 
  551.  
  552. This value is used by PCPRINT to figure out when it is time to put out footing 
  553. and bottom margin. It should not exceed the forms length known by the printer. 
  554. (The printer forms length can be set using an Esc C nn escape sequence - see 
  555. Printer Control String - when the device driver interface is used.) 
  556.  
  557. The PCPRINT default is 66. 
  558.  
  559. This option is coded as PL=number in a PCPRINT profile. 
  560.  
  561. Note:  This specification can affect the selection of fonts listed in the 
  562. "Specify queue, driver and font" dialog. Only fonts which are small enough to 
  563. for the number of lines per page requested here are listed. 
  564.  
  565. Top Margin 
  566.  
  567. This is the number of blank lines you want at the top of each page. 
  568.  
  569. The PCPRINT default is 3. 
  570.  
  571. This option is coded as TM=number in a PCPRINT profile. 
  572.  
  573. Bottom Margin 
  574.  
  575. This is the number of blank lines you want at the bottom of each page. 
  576.  
  577. The PCPRINT default is 3. 
  578.  
  579. This option is coded as BM=number in a PCPRINT profile. 
  580.  
  581. Left Side Margin 
  582.  
  583. The output will be adjusted this many characters to the right. (The average 
  584. character width is used for a proportional font.) 
  585.  
  586. If this value is too large, long lines can wrap (direct output) or be truncated 
  587. (PM output). 
  588.  
  589. The PCPRINT default is 0. 
  590.  
  591. This option is coded as PM=number in a PCPRINT profile. 
  592.  
  593. Initial Page Number 
  594.  
  595. If the running heading or footing contains the page number (%n), the first page 
  596. will have this number. 
  597.  
  598. The PCPRINT default is 1. 
  599.  
  600. This option is coded as PN=number in a PCPRINT profile. 
  601.  
  602. Double Spacing 
  603.  
  604. Select this option for double spacing. PCPRINT will add a blank line after each 
  605. line in the source document. 
  606.  
  607. The PCPRINT default is single spacing. 
  608.  
  609. This option is coded as DS in a PCPRINT profile. 
  610.  
  611. Running Heading 
  612.  
  613. This is a string to be be printed after the top margin on each page. 
  614.  
  615. Current date, time, page number and file name can be included in the heading. 
  616. The following substitutions will be made: 
  617.  
  618.  Code      Will be replaced by 
  619.  
  620.  %y        year (last two digits) 
  621.  
  622.  %m        month (two digits) 
  623.  
  624.  %d        day-of-month 
  625.  
  626.  %h        hour (24-hour format) 
  627.  
  628.  %i        minute 
  629.  
  630.  %s        second 
  631.  
  632.  %n        page number 
  633.  
  634.  %f        file name 
  635.  
  636.  The file name (%f) format depends on the type of document you are printing: 
  637.  
  638.  o For a PC file, it is the PC file name, including drive and path if given 
  639.    when requesting the printout. 
  640.  
  641.  o For a VM file, the format is "filename filetype filemode". 
  642.  
  643.  o For a note displayed with PEEK, it is "userid node A0". 
  644.  
  645.  o For a note displayed with OfficeVision/VM, it is "userid node A1". 
  646.  
  647.  o For a Print Screen, %f is replaced by "Session xxxx" where xxxx is the long 
  648.    session name. 
  649.  
  650.  For %f to work properly, you must use rel 7.1 or later of PCPRINT EXEC and 
  651.  PCPRINT XEDIT. 
  652.  
  653.  If the device driver interface for printing is used (i.e. if LPTx, COMx or 
  654.  File was selected from the Printer menu), advanced users may include printer 
  655.  control codes and escape sequences  in the string. This can be used to make 
  656.  the heading appear in a different style or font. 
  657.  
  658.  The running heading is not used when printing OfficeVision/VM documents. 
  659.  
  660.  The PCPRINT default is no running heading. 
  661.  
  662.  This option is coded as RH="string" in a PCPRINT profile. 
  663.  
  664.  Running Footing 
  665.  
  666.  If a footing is specified, a blank line and then the footing will precede the 
  667.  bottom margin. The same substitutions as in the running heading will be made. 
  668.  
  669.  The PCPRINT default is no running footing. 
  670.  
  671.  This option is coded as RF="string" in a PCPRINT profile. 
  672.  
  673.  
  674. ΓòÉΓòÉΓòÉ 4.6.2. Form Feed options ΓòÉΓòÉΓòÉ
  675.  
  676. The form feed options affect the way the paper is fed through the printer. 
  677.  
  678. Note that some OS/2 printer drivers also have form feed control settings in 
  679. their printer properties dialogs. 
  680.  
  681. Remove initial form feed 
  682.  
  683. Often, the first or second line of a document contains a code for skipping to 
  684. the start of a new page. If you are already at the top of a page, a blank page 
  685. will be fed through the printer. Select this option if you want such an initial 
  686. form feed to be removed. 
  687.  
  688. The PCPRINT default is to not remove an initial form feed. 
  689.  
  690. This option is coded as REMOVEFF in a PCPRINT profile. 
  691.  
  692. Form feeds after each document 
  693.  
  694. This is the number of form feeds PCPRINT sends to the printer after printing 
  695. the last line of the document. 
  696.  
  697. The PCPRINT default is to send one form feed. 
  698.  
  699. This option is coded as EJECTS=number in a PCPRINT profile. 
  700.  
  701. Beep after each document 
  702.  
  703. Select this option if you want PCPRINT to beep the speaker when it has 
  704. completed the processing of a document. 
  705.  
  706. The PCPRINT default is to remain silent. 
  707.  
  708. This option is coded as BEEP in a PCPRINT profile. 
  709.  
  710.  
  711. ΓòÉΓòÉΓòÉ 4.6.3. The printer control string ΓòÉΓòÉΓòÉ
  712.  
  713. The "Printer Control String" dialog is invoked when you select LPTx or COMx 
  714. from the Printer menu. 
  715.  
  716. This dialog allows you to specify a string of hex codes which is sent to the 
  717. printer immediately before the first line of each document. It can be used to 
  718. set condensed mode, select font and print quality, and more - exactly what you 
  719. can do depends on what type of printer you are using. 
  720.  
  721. You can modify the string by entering new values or changing values from the 
  722. keyboard. You can also add control codes and escape sequences by 
  723. double-clicking on entries in a list box. As with all options, you can save the 
  724. printer control string you have built by using the Profile pull-down menu. 
  725.  
  726. A printer control string can be specified in a profile using the PCONTROL 
  727. keyword. Example: 
  728.  
  729. PCONTROL ="07 1B 58 05 4B"
  730.  
  731. It is also possible, and maybe easier, to use keywords for the individual 
  732. control codes and escape sequences which make up the printer control string. 
  733. For example, the printer control string above could have been specified as 
  734.  
  735. BEL X=5,75
  736.  
  737. Printer Control Codes 
  738.  
  739. The following control codes can be selected from the Printer Control listbox or 
  740. specified using a keyword. The effect of each code varies somewhat from printer 
  741. to printer. Consult the Guide to Operations manual for your printer. For 
  742. example, on a Proprinter, Shift In starts compressed mode printing and Device 
  743. Control 2 ends it. 
  744.  
  745.  Keyword     Code (hex) and meaning 
  746.  
  747.  BEL         07=Bell 
  748.  
  749.  BS          08=Backspace 
  750.  
  751.  HT          09=Horizontal Tab 
  752.  
  753.  LF          0A=Line Feed 
  754.  
  755.  VT          0B=Vertical Tab 
  756.  
  757.  FF          0C=Form Feed 
  758.  
  759.  CR          0D=Carriage Return 
  760.  
  761.  SO          0E=Shift Out 
  762.  
  763.  SI          0F=Shift In 
  764.  
  765.  DC1         11=Device Control 1 
  766.  
  767.  DC2         12=Device Control 2 
  768.  
  769.  DC3         13=Device Control 3 
  770.  
  771.  DC4         14=Device Control 4 
  772.  
  773.  CAN         18=Cancel 
  774.  
  775.  Printer Escape Sequences 
  776.  
  777.  Escape sequences are used to set tab positions, select print quality, and 
  778.  other things which require more than a simple control code. An escape sequence 
  779.  consists of the Esc character (x'1B'), a command character, and zero or more 
  780.  values. 
  781.  
  782.  The Guide to Operations manual for your printer will show exactly which escape 
  783.  sequences you can use to control your particular printer. 
  784.  
  785.  If you double-click on the "Escape Sequence..." line in the Printer Control 
  786.  listbox, PCPRINT will display a panel which lets you enter a command character 
  787.  and up to five values. 
  788.  
  789.  An escape sequences can be defined in a profile in the following format: 
  790.  
  791.   c<=number><,number><,number>...
  792.  where c is a the command character and the numbers are the values in decimal. 
  793.  For example, 
  794.  
  795.   X=5,75
  796.  
  797.  will cause the following addition to the printer control string: 
  798.  
  799.   1B 58 05 4B
  800.  
  801.  The following escape command codes are supported by most printers: 
  802.  
  803.  B    Set vertical tabs 
  804.  
  805.  C    Set page length 
  806.  
  807.  D    Set horizontal tabs 
  808.  
  809.  E    Start emphasized  printing 
  810.  
  811.  F    Cancel emphasized printing 
  812.  
  813.  G    Start double-strike printing 
  814.  
  815.  H    Cancel double-strike printing 
  816.  
  817.  I    Select print mode, font, or quality 
  818.  
  819.  W    Control double-wide printing 
  820.  
  821.  X    Set margins 
  822.  
  823.  9    Stop at end-of-page 
  824.  
  825.  See the printer Guide to Operations for details about values to use etc. 
  826.  
  827.  Note:  The command character (B, C, D, etc) must be in UPPER CASE. 
  828.  
  829.  Example: The following specification could be useful for a Quietwriter which 
  830.  has no sheet feed or form feed feature: 
  831.  
  832.    C=62 9 X=15 HT HT HT CR
  833.  
  834.  which alternatively could be specified as 
  835.  
  836.    PCONTROL="1B 43 3E 1B 39 1B 58 0F 09 09 09 0D"
  837.  
  838.  (The Horizontal Tabs are used to get the carriage past the left margin before 
  839.  printing the first line.) 
  840.  
  841.  
  842. ΓòÉΓòÉΓòÉ 4.6.4. Print queue, print driver and font options ΓòÉΓòÉΓòÉ
  843.  
  844. The "Specify queue, driver and font" dialog is invoked when you select a 
  845. printer name from the Printer menu, and thus request the Presentation Manager 
  846. interface for printing. 
  847.  
  848. The dialog is used to select print queue, print driver, driver data, and font 
  849. for the print job. 
  850.  
  851. The current queue, driver and font are displayed and can be modified. Note that 
  852. if you have more than one printer defined, the current values could apply to 
  853. another printer and may not be valid for the printer you work with now. The 
  854. listboxes will show the valid values. 
  855.  
  856. You may have to do some experimenting to find the best combination of font, 
  857. number of lines per page and page margin (in the page layout dialog) for a 
  858. particular type of print job. When done, use Profile Save or Save As... to save 
  859. the selections. 
  860.  
  861. Print queue 
  862.  
  863. There may be more than one queue defined for the selected printer. Use the drop 
  864. down list to select the desired queue. 
  865.  
  866. For example, a 4019 might have one queue for PPDS jobs, one for HP Laserjet 
  867. jobs, and one for Postscript jobs. All queues are normally held except the one 
  868. corresponding to the mode in which the 4109 is currently started. Regardless of 
  869. the current status, you can direct your PCPRINT output to the desired queue. 
  870.  
  871. This option is coded as QUEUE="string" in a PCPRINT profile. There is no 
  872. default. 
  873.  
  874. Print driver 
  875.  
  876. There may be more than one print driver defined for the selected printer. Use 
  877. the drop down list to select the desired driver. 
  878.  
  879. For example, a 4019 might have one driver for PPDS jobs, one for HP Laserjet 
  880. jobs, and one for Postscript jobs. 
  881.  
  882. The selection will affect which fonts that are available. 
  883.  
  884. This option is coded as DRIVER="string" in a PCPRINT profile. If the driver 
  885. contains a period (for example, "PSCRIPT.IBM 4019 v52_1 (39 Fonts)" ), the name 
  886. before the period is coded as DRIVER="string" and the name after the period is 
  887. coded as DEVICE="string". There are no defaults. 
  888.  
  889. Driver data 
  890.  
  891. When you change to a new print driver, or click the "Driver data" push button, 
  892. the print driver will display a dialog allowing you to specify things like 
  893. resolution, paper format, portrait or landscape printing, and number of copies. 
  894.  
  895. Please note that this dialog is provided by the print driver, not by PCPRINT. 
  896. PCPRINT only invokes it. 
  897.  
  898. The driver data is coded as DRIVDATA1="string1" and DRIVDATA2="string2" in a 
  899. PCPRINT profile. String1 contains the total driver data length in hex (byte 
  900. 1-4), the driver version number in hex (byte 5-12) and possibly a device name 
  901. (byte 13-44). String2 is the remaining driver data in hex. The length of 
  902. String2 is (total driver data length - 40)*2. There are no defaults. 
  903.  
  904. The recommended way of placing this information in a PCPRINT profile is by 
  905. using Profile Save or Save As... 
  906.  
  907. The profile should be re-saved if you apply service to the OS/2 print driver, 
  908. since the version number and the format of the data may have changed. 
  909.  
  910. Font source 
  911.  
  912. Select Device font to use a font specifically made for the selected printer. 
  913. Such a font is normally faster and nicer looking than a generic font. 
  914.  
  915. Select Generic font to use a font which is available on all printers and 
  916. screens. On some printers, this is the only way to get an outline font. An 
  917. outline font can be scaled to any size and can be printed sideways. 
  918.  
  919. The selection affects which fonts that are displayed when the List fonts 
  920. pushbutton is clicked. 
  921.  
  922. Font spacing 
  923.  
  924. Select Proportional  spacing unless the document contains tables or other 
  925. information that needs to be aligned. In that case, specify Fixed spacing. 
  926.  
  927. The selection affects which fonts that are displayed when the List fonts 
  928. pushbotton is clicked. 
  929.  
  930. Font name 
  931.  
  932. When you click "List fonts", the "Fonts" listbox will be filled with fonts that 
  933. are 
  934.  
  935.  o device or generic fonts, as desired 
  936.  
  937.  o proportionally or fixed spaced fonts, as desired 
  938.  
  939.  o small enough to provide the desired number of lines per page, as specified 
  940.    in the "Number of lines per page" field in the Page Layout dialog. 
  941.  
  942.  If there is no such font, you will get an error message. In that case, change 
  943.  font type, or decrease the number of lines per page. The reason could also be 
  944.  that you have specified an invalid combination of printer, queue and driver. 
  945.  Click the down-arrows in the Queue and Driver fields to list valid names. 
  946.  
  947.  The currently selected font is shown above the listbox. It can be replaced by 
  948.  clicking on a font in the listbox. 
  949.  
  950.  The font specification has three parts: 
  951.  
  952.   1. The font face name 
  953.  
  954.   2. The character cell size (horizontal x vertical) for a raster font, or 
  955.      "(Outline)" for an outline font. 
  956.  
  957.   3. The font match value. The match value plus the face name identifies a 
  958.      particular font. The match value is negative for a device font, positive 
  959.      for a generic font. 
  960.  
  961.  There may be more than one raster font with the same face name and cell size. 
  962.  Then you will have to experiment to find the difference. 
  963.  
  964.  An outline font can be scaled to any size and can be printed sideways. But a 
  965.  raster font with a given size normally prints faster and looks better than an 
  966.  outline font scaled to the same size. 
  967.  
  968.  The selected font is coded as FONT="string" in a PCPRINT profile. 
  969.  
  970.  
  971. ΓòÉΓòÉΓòÉ 4.7. Printing a file ΓòÉΓòÉΓòÉ
  972.  
  973. To invoke the Print PC File function, 
  974.  
  975.   1. Select the PCPRINT window or icon. 
  976.  
  977.   2. Press Ctrl-f or select Print PC File from the Print pull-down menu or the 
  978.      System Menu. 
  979.  
  980.   3. You will be prompted for a file name. 
  981.  
  982.   4. The file you specified will now be printed, according to the options you 
  983.      have selected. 
  984.  
  985.  
  986. ΓòÉΓòÉΓòÉ 4.8. Printing files using drag and drop ΓòÉΓòÉΓòÉ
  987.  
  988. With OS/2 1.3, files can be dragged from File Manager and dropped on the 
  989. PCPRINT icon or window. You can mark several files (up to 25) and drag and drop 
  990. the whole group on PCPRINT. They will then be printed one at a time. 
  991.  
  992. In OS/2 1.3, if PCPRINT is not started, a single file can be dragged and 
  993. dropped on the PCPRINT icon in the Program Group containing PCPRINT. PCPRINT 
  994. will start, print this file, and terminate. 
  995.  
  996. With OS/2 2.x, files can be printed by dragging them from a drives folder and 
  997. dropping them on the icon representing the PCPRINT program (not the icon 
  998. representing a running copy of PCPRINT, if you have choosen, in the OS/2 System 
  999. settings, to have minimized windows placed on the desktop). Make sure the 
  1000. PCPRINT settings are sutiable for this. 
  1001.  
  1002.  
  1003. ΓòÉΓòÉΓòÉ 4.9. Printing PC files with host-type control characters ΓòÉΓòÉΓòÉ
  1004.  
  1005. Documents on S/370 hosts often contain machine-type or ANSI-type control 
  1006. characters in column 1 of each line. PC documents almost never have such 
  1007. control characters. The exception to this rule is when you have downloaded a 
  1008. document with control characters from a host. PCPRINT will print ANSI documents 
  1009. correctly if you specify ANSI, as a command line option or in a profile. 
  1010.  
  1011.  
  1012. ΓòÉΓòÉΓòÉ 4.10. Closing PCPRINT ΓòÉΓòÉΓòÉ
  1013.  
  1014. To close PCPRINT, 
  1015.  
  1016.  o press F3, or 
  1017.  
  1018.  o select Exit from the Profile pull-down, or 
  1019.  
  1020.  o select Close from the System Menu. 
  1021.  
  1022.  
  1023. ΓòÉΓòÉΓòÉ 4.11. Printing just one file ΓòÉΓòÉΓòÉ
  1024.  
  1025. Sometimes you may want PCPRINT to print just one file, and then terminate. If 
  1026. you enter the name of the PC file to printed as the FIRST parameter, PCPRINT 
  1027. will print this file and then terminate, without ever putting up its window. 
  1028. For example: 
  1029.  
  1030. pcprint letter1.txt profile=c:\pcprint\letters.pro
  1031. pcprint test.dat ansi
  1032. pcprint d:\reports\august.rep rh="File %f printed on 19%y-%m-%d" pm=5
  1033.  
  1034. The file name must contain a period. 
  1035.  
  1036.  
  1037. ΓòÉΓòÉΓòÉ 5. Using PCPRINT with VM ΓòÉΓòÉΓòÉ
  1038.  
  1039. This chapter describes how to use PCPRINT to print VM documents like files, 
  1040. notes, and OfficeVision/VM calendars. This requires that you use OS/2 Extended 
  1041. Edition, IBM Extended Services/2, or IBM Communications Manager/2, that 
  1042. Communications Manager 3270 Emulation is started, and at least one host session 
  1043. is active. 
  1044.  
  1045. Please note that if you are using OS/2 Extended Edition release 1.2, it must be 
  1046. at CSD level 4064 or later. The SYSLEVEL command will show your current level. 
  1047.  
  1048. PCPRINT allows you to request the printing of host documents from the host 
  1049. side, without leaving the 3270 emulation window. 
  1050.  
  1051. Host documents sometimes have ANSI- or IBM-defined control characters in the 
  1052. first column. PCPRINT supports such control characters. 
  1053.  
  1054.  
  1055. ΓòÉΓòÉΓòÉ 5.1. Specifying the host session ΓòÉΓòÉΓòÉ
  1056.  
  1057. You can tell PCPRINT to work with a specific host session. Or you can use 
  1058. automatic session selection (the default). 
  1059.  
  1060. To request a specific session, 
  1061.  
  1062.  o enter its name as the first parameter to PCPRINT.EXE 
  1063.  
  1064.       pcprint <session_id> <option> <option> ...
  1065.  
  1066.    where "session_id" is 
  1067.  
  1068.     - the one-character short name, or 
  1069.  
  1070.     - the two- to eight-character long name 
  1071.  
  1072.       of the session. 
  1073.  
  1074.  o or specify SOURCE=short-name or SOURCE=long-name in a profile. 
  1075.  
  1076.    If the specified session is not active when PCPRINT is started, PCPRINT will 
  1077.    wait for it. A check is made every 10 seconds (see Checking Interval.) 
  1078.  
  1079.  Once PCPRINT is running, you can use the Sessions pull-down menu to change 
  1080.  session. PCPRINT will dynamically create the Sessions pull-down menu each time 
  1081.  you select it, so newly started sessions will be included. 
  1082.  
  1083.  If you want to use PCPRINT for multiple host sessions, with the same 
  1084.  formatting options, use automatic session selection. When you switch to a new 
  1085.  host session (for example by selecting it from the Task List, or by clicking 
  1086.  with the mouse in its window), PCPRINT will automatically change session also. 
  1087.  
  1088.  To request automatic session selection, specify AUTO as the first parameter, 
  1089.  put SOURCE=AUTO in a profile, or select AUTO from the Sessions pull-down menu. 
  1090.  Or do nothing - AUTO is the default. 
  1091.  
  1092.  You can run multiple copies of PCPRINT, some monitoring specific host 
  1093.  sessions, and one (using AUTO) monitoring the remaining sessions. Even if they 
  1094.  all process documents at the same time and send them to the same printer, the 
  1095.  printouts will not be intermixed - the OS/2 print spooler will take care of 
  1096.  that. 
  1097.  
  1098.  
  1099. ΓòÉΓòÉΓòÉ 5.2. Controlling the Host Print function ΓòÉΓòÉΓòÉ
  1100.  
  1101. The Host Print function can be in one of three states, as shown on the "Host 
  1102. Print status" line in the PCPRINT window: 
  1103.  
  1104.   1. Inactive: A specified 3270 session has not been started. Or you use 
  1105.      automatic session selection but no 3270 sessions are started. Or Host 
  1106.      Print has been manually deactivated. 
  1107.  
  1108.   2. Active - waiting: You can now enter print requests from the 3270 session 
  1109.      shown on the "Current host session" line. 
  1110.  
  1111.   3. Processing document xxxxxxx: The named document is being downloaded from 
  1112.      the host and sent to the printer. 
  1113.  
  1114.  You can manually activate or deactivate Host Print at any time, from the Print 
  1115.  pull-down menu or the System Menu. There are three reasons why you might want 
  1116.  to deactivate Host Print: 
  1117.  
  1118.   1. To interrupt the processing of a large document. 
  1119.   2. If it slows down other programs too much. 
  1120.   3. If it interferes with other host communication programs. 
  1121.  
  1122.  For the large majority of users, only the first item is of any interest. 
  1123.  
  1124.  If you don't want PCPRINT to activate Host Print automatically, start PCPRINT 
  1125.  with the STARTINACTIVE option. To make this the default, put STARTINACTIVE in 
  1126.  the default profile PCPRINT.PRO. Example: 
  1127.  
  1128.   pcprint e startinactive
  1129.  
  1130.  
  1131. ΓòÉΓòÉΓòÉ 5.3. Printing a VM note - OfficeVision/VM users ΓòÉΓòÉΓòÉ
  1132.  
  1133. When looking at your mail, select "Print" with PF8 (as usual). 
  1134.  
  1135. Then select a printer definition which uses PCPRINT. Then press Enter. The note 
  1136. will now be printed. 
  1137.  
  1138. PCPRINT will display the note in a special format, with a double quote in the 
  1139. first position in the command area. This is the signal to PCPRINT.EXE to start 
  1140. printing the note. If the screen stays this way and nothing more happens, 
  1141. chances are that PCPRINT.EXE has not been started, or that it is monitoring the 
  1142. wrong host session. See Nothing happens in the Problem Determination chapter. 
  1143.  
  1144.  
  1145. ΓòÉΓòÉΓòÉ 5.4. Printing non-OfficeVision/VM documents in your reader ΓòÉΓòÉΓòÉ
  1146.  
  1147. When leaving Incoming Mail, you will be asked if you want to see a list of 
  1148. non-OfficeVision/VM documents in your reader. If you answer yes, and want to 
  1149. print one of the items in the list, just type PCPRINT to the left of the item 
  1150. to be printed (under Cmd). 
  1151.  
  1152.  
  1153. ΓòÉΓòÉΓòÉ 5.5. Printing a VM note from PEEK, NOTE or RDRLIST ΓòÉΓòÉΓòÉ
  1154.  
  1155.  
  1156. ΓòÉΓòÉΓòÉ 5.5.1. Printing from PEEK ΓòÉΓòÉΓòÉ
  1157.  
  1158. With PCPRINT as your PEEK profile 
  1159.  
  1160. If you have set PCPRINT as your PEEK profile, just press PF2. 
  1161.  
  1162. This will put a special character (a grave accent in the U.S.) in the first 
  1163. position in the XEDIT command field. This is the signal to PCPRINT.EXE to start 
  1164. printing the note. Don't hit Enter. 
  1165.  
  1166. When the note has been sent to the PC printer (or to the PC file), you will get 
  1167. the message 
  1168.  
  1169.    PCPRINT processing complete
  1170.  
  1171. You can now continue to work with the note. 
  1172.  
  1173. Note:  On some VM systems, the special character is displayed as a double 
  1174. quote. This will happen for example if your workstation is defined to VM as a 
  1175. 3277. This will also work, but PCPRINT will issue a QUIT command instead of 
  1176. displaying the PCPRINT processing complete message. 
  1177.  
  1178. Note:  On non-U.S. VM systems, the special character will usually be something 
  1179. else than a grave accent, for example an accented character. In that case you 
  1180. must create a PCPRINT profile with MSGSIGNAL=this character. See National 
  1181. Language Support. 
  1182.  
  1183. With any PEEK profile 
  1184.  
  1185. Regardless of what your PEEK profile is, you can print the note by typing 
  1186. "pcprint" in the command area (after the arrow). and hitting Enter. 
  1187.  
  1188. PCPRINT will format the screen in a special way and put a double quote in the 
  1189. first position in the XEDIT command area. This is the signal to PCPRINT.EXE to 
  1190. start printing the note. 
  1191.  
  1192. When the note has been sent to the PC printer (or to the PC file), the screen 
  1193. will be restored to its original layout. 
  1194.  
  1195. You can also include options. For example 
  1196.  
  1197. pcprint (rh="The first note from John"
  1198.  
  1199. If the screen remains with a special character in the command area and nothing 
  1200. more happens, chances are that PCPRINT.EXE has not been started, or that it is 
  1201. monitoring the wrong host session. See Nothing happens in the Problem 
  1202. Determination chapter. 
  1203.  
  1204.  
  1205. ΓòÉΓòÉΓòÉ 5.5.2. Printing the note you are typing ΓòÉΓòÉΓòÉ
  1206.  
  1207. After completing the note, but before sending it, you can print it by typing 
  1208. "pcprint" in the command area. 
  1209.  
  1210. You can also include options. For example 
  1211.  
  1212. pcprint (rh="My answer to John's first note"
  1213.  
  1214.  
  1215. ΓòÉΓòÉΓòÉ 5.5.3. Printing from RDRLIST ΓòÉΓòÉΓòÉ
  1216.  
  1217. You don't have to PEEK a note to print it - you can do it from the RDRLIST 
  1218. panel. 
  1219.  
  1220. Simply type "pcprint" on the line with the note you want to print. 
  1221.  
  1222. As always, you can include options. For example 
  1223.  
  1224. pcprint / (rh="The second note from John"
  1225.  
  1226.  
  1227. ΓòÉΓòÉΓòÉ 5.6. Printing a VM file ΓòÉΓòÉΓòÉ
  1228.  
  1229. PCPRINT EXEC can be used to print any regular VM file with a maximum record 
  1230. length of 79 bytes. To do this, give the command 
  1231.  
  1232. pcprint fn <ft> <fm> <(options...>
  1233.  
  1234. The defaults are SCRIPT for ft, and * for fm. The options are the PCPRINT Base 
  1235. Support options plus some new ones, explained below. Examples: 
  1236.  
  1237. pcprint summary table b (pm=10 ds
  1238. pcprint invit letter (cc notrc dest=lpt2
  1239. pcprint monthrep listing (dest=monthrep.scr
  1240.  
  1241. The command can also be given from FILELIST. 
  1242.  
  1243. OfficeVision/VM users can use the OfficeVision/VM functions for printing files. 
  1244.  
  1245. PCPRINT will invoke XEDIT, automatically issue FORward commands to page through 
  1246. the file, and then issue a QUIT command to leave XEDIT and return to wherever 
  1247. you invoked PCPRINT from (FILELIST for example). 
  1248.  
  1249. If you decide you don't want to print the whole file, use the following 
  1250. procedure to stop the printing: 
  1251.  
  1252.   1. Go to the PCPRINT window. 
  1253.  
  1254.   2. Press Ctrl-d or select Deactivate Host Print from the Print pull-down menu 
  1255.      or the System Menu. 
  1256.  
  1257.   3. What you have processed so far will be released to the OS/2 Print Spooler. 
  1258.      OS/2 functions can be used to cancel the print job. 
  1259.  
  1260.   4. Press Ctrl-a or select Activate Host Print to activate PCPRINT again. 
  1261.  
  1262.  Note:  PCPRINT is dependent on OS/2 to to do the translation from EBCDIC to 
  1263.  ASCII. Box characters may not be correctly translated. 
  1264.  
  1265.  
  1266. ΓòÉΓòÉΓòÉ 5.7. Scripting and printing SCRIPT source files ΓòÉΓòÉΓòÉ
  1267.  
  1268. A VM file with filetype SCRIPT normally contains SCRIPT/GML tags. 
  1269. OfficeVision/VM users can format and print such a document in one step using 
  1270. the following command: 
  1271.  
  1272. profs hardcopy fn ft <fm>
  1273.  
  1274. If OfficeVision/VM is not installed, you have to script the document (use the 
  1275. SCRIPT command) and then use PCPRINT to print the output from SCRIPT. 
  1276.  
  1277.  
  1278. ΓòÉΓòÉΓòÉ 5.8. Printing from within XEDIT ΓòÉΓòÉΓòÉ
  1279.  
  1280. If you are editing or browsing a file with XEDIT and decide you want to print 
  1281. it, just type "pcprint" in the command area and hit Enter. 
  1282.  
  1283. You can also include options. For example 
  1284.  
  1285. pcprint (rh="Outline of my report"
  1286.  
  1287. If you don't want to print the whole file, use the XEDIT prefix commands X or 
  1288. XX to exclude the parts you don't want to print. Only the "viewed" parts of the 
  1289. file are printed. 
  1290.  
  1291. If you want to print another file than the one you are editing, you don't have 
  1292. to leave XEDIT to do it. Just include the file name in the pcprint command. For 
  1293. example 
  1294.  
  1295. pcprint chapter2 script (ds
  1296.  
  1297.  
  1298. ΓòÉΓòÉΓòÉ 5.9. Printing wide documents ΓòÉΓòÉΓòÉ
  1299.  
  1300. Normally, you cannot print documents with lines longer than 79 characters. This 
  1301. is possible only if your host session is defined, in Communications Manager and 
  1302. on the host, as having more than 80 columns. For example, the session can be 
  1303. defined as a 3270 model 5 session, with 27 lines and 132 columns. Many systems 
  1304. also support non-standard sizes like 24 lines and 85 columns. 
  1305.  
  1306. If your host session is set up this way, PCPRINT lets you print lines as wide 
  1307. as your session width minus 1. 
  1308.  
  1309. If your printer can print lines that long is a different story. The Shift In 
  1310. printer control code (SI option) might be useful, to start compressed mode 
  1311. printing. If lines wrap and you are not sure if it is a host or a PCPRINT or a 
  1312. printer problem, select File... from the Printer pull-down menu, print to a 
  1313. file, and examine the file. 
  1314.  
  1315.  
  1316. ΓòÉΓòÉΓòÉ 5.10. Entering PCPRINT options from the host side ΓòÉΓòÉΓòÉ
  1317.  
  1318. All the PCPRINT options explained in chapter 4 (except SOURCE and PROFILE), can 
  1319. be entered from the host side. 
  1320.  
  1321. If you are using PCPRINT EXEC or are invoking PCPRINT XEDIT directly, just type 
  1322. the options after a left parenthesis. Use the same keywords and values as you 
  1323. would use in a PCPRINT profile. Examples: 
  1324.  
  1325. pcprint imspars log a (pm=3 I=2
  1326. exec pcprint prob8904 report (rh="Problem report" ds
  1327. pcprint febr summary b (dest=d:\febrsum.wks
  1328. pcprint (ds     (entered from within XEDIT)
  1329.  
  1330. When using OfficeVision/VM print functions, put the options last in $$PRNT$$ 
  1331. $$FILE$$. For examples, see chapter 3. In this case you cannot use an option if 
  1332. the length of the keyword plus its operands (if any) exceeds 8 characters. So 
  1333. "pm=3" is OK but "DEST=COM1" is not. 
  1334.  
  1335. Options entered from the host side only remain in effect while the print 
  1336. request for which they were entered is executed. Printer control codes and 
  1337. escape sequences entered from the host side will create a temporary extension 
  1338. to the printer control string. For example, suppose you enter 
  1339.  
  1340. pcprint imspars log a (pm=3 I=2
  1341. pcprint prob8904 report (rh="Problem report" ds
  1342.  
  1343. Then imspars log will be printed with a left side margin of 3. An escape 
  1344. sequence (Esc I 2 or 1B 49 02 hex) will be added at the end of the printer 
  1345. control string before printing it. But prob8904 report will be printed with 
  1346. whatever left side margin value and printer control string that were in effect 
  1347. before the printing of imspars log was requested. 
  1348.  
  1349.  
  1350. ΓòÉΓòÉΓòÉ 5.11. Printing documents with control characters ΓòÉΓòÉΓòÉ
  1351.  
  1352. Many host documents have printer control characters in column 1, with meanings 
  1353. like "skip three lines", "skip to a new page", etc. Two types of control 
  1354. characters are commonly used: IBM-defined (also called machine-type and 
  1355. S/370-type) and ANSI-defined (also called ASA control characters). 
  1356.  
  1357. Output from SCRIPT/VS normally has IBM-defined control characters. The 
  1358. OfficeVision/VM calendar has ANSI control characters. 
  1359.  
  1360. PCPRINT supports both types. You can use the CC and ANSI options to explicitly 
  1361. tell PCPRINT to treat column 1 of the document as containing IBM or ANSI 
  1362. control characters, respectively. You can use the NOCC option to explicitly 
  1363. tell PCPRINT to treat column 1 as data. Or you can let PCPRINT decide. 
  1364.  
  1365. PCPRINT then uses the following logic to determine the type of control 
  1366. characters present. 
  1367.  
  1368.   1. PCPRINT assumes 
  1369.  
  1370.      a. CC if the file type is LIST3800, PRINT, or PRINTCC 
  1371.  
  1372.      b. CC if the file type is SCRIPT and the file name starts with a dollar 
  1373.         sign 
  1374.  
  1375.      c. ANSI if the file type is 1403 
  1376.  
  1377.      d. ANSI if the file type is PRINTLOG and the file name is CALENDAR (as it 
  1378.         is for a OfficeVision/VM calendar) 
  1379.  
  1380.      e. ANSI if the file type is $$LOG$$ and the file name is $$TEMP$$. 
  1381.  
  1382.      f. ANSI if the first line contains "DisplayWrite/370" starting in column 3 
  1383.  
  1384.   2. If the PCPRINT still doesn't know, column 1 of the data is examined. If at 
  1385.      least one record has a valid machine-type control character in column 1, 
  1386.      CC is assumed. 
  1387.  
  1388.   3. In all other cases, PCPRINT assumes that there are no control characters. 
  1389.  
  1390.  If PCPRINT formats the document according to control characters, all Page 
  1391.  Layout options are ignored, with one exception: The side margin value (PM) is 
  1392.  used. 
  1393.  
  1394.  
  1395. ΓòÉΓòÉΓòÉ 5.11.1. IBM-defined control characters supported by PCPRINT ΓòÉΓòÉΓòÉ
  1396.  
  1397. The following IBM-defined control characters are supported: 
  1398.  
  1399.  Code (hex) and meaning             PCPRINT action after printing the line 
  1400.  
  1401.  01 = Write w/o spacing             Add CR only 
  1402.  
  1403.  03 = No operation                  Ignore the line 
  1404.  
  1405.  09 = Space one line                Add CR LF 
  1406.  
  1407.  0B = Space one line                Add CR LF 
  1408.  
  1409.  11 = Space two lines               Add CR LF LF 
  1410.  
  1411.  13 = Space two lines               Add CR LF LF 
  1412.  
  1413.  19 = Space three lines             Add CR LF LF LF 
  1414.  
  1415.  1B = Space three lines             Add CR LF LF LF 
  1416.  
  1417.  89 = Skip to channel 1             Add CR FF 
  1418.  
  1419.  8B = Skip to channel 1             Add CR FF 
  1420.  
  1421.  CR = Carriage Return,  LF = Line Feed,  FF = Form Feed. 
  1422.  
  1423.  PCPRINT will change IBM-defined control characters in column 1 to displayable 
  1424.  characters (0 to 9). These changes are temporary and will not be saved unless 
  1425.  you explicitly do it (which you shouldn't). Doing a RECEIVE from the PEEK 
  1426.  screen is OK, since RECEIVE gets the data from the reader and ignores any 
  1427.  changes made while PEEKing. 
  1428.  
  1429.  Note: If you download a file with IBM-defined control characters to the PC, 
  1430.  and request EBCDIC to ASCII conversion, the control characters will be 
  1431.  translated also. PCPRINT cannot print such a PC file correctly. PCPRINT can 
  1432.  only interpret the control characters listed above, and the corresponding 
  1433.  displayable characters set by PCPRINT XEDIT. 
  1434.  
  1435.  
  1436. ΓòÉΓòÉΓòÉ 5.11.2. ANSI-defined control characters supported by PCPRINT ΓòÉΓòÉΓòÉ
  1437.  
  1438. The following ANSI-defined control characters are supported: 
  1439.  
  1440.  Code and meaning                   PCPRINT action before printing the line 
  1441.  
  1442.  blank = Space 1 line               Add CR LF 
  1443.  
  1444.  0 = Space 2 lines                  Add CR LF LF 
  1445.  
  1446.  - = Space 3 lines                  Add CR LF LF LF 
  1447.  
  1448.  + = Suppress space                 Add CR only 
  1449.  
  1450.  1 = Skip to new page               Add FF 
  1451.  
  1452.  CR = Carriage Return,  LF = Line Feed,  FF = Form Feed. 
  1453.  
  1454.  Note: If you download a file with ANSI control characters to the PC, and 
  1455.  request EBCDIC to ASCII conversion, the control characters will be translated 
  1456.  also. PCPRINT will print such a PC file correctly if you specify the ANSI 
  1457.  option on the command line or in a profile. 
  1458.  
  1459.  
  1460. ΓòÉΓòÉΓòÉ 5.12. Printing documents with table reference characters ΓòÉΓòÉΓòÉ
  1461.  
  1462. Documents formatted for printing on the 3800 often have table reference 
  1463. characters in column 2. These control the character set to be used. If such a 
  1464. document is to be printed with PCPRINT, the TRC option is recommended. The 
  1465. table reference characters will then be suppressed by PCPRINT. TRC assumes CC. 
  1466. TRC with ANSI is not supported. 
  1467.  
  1468.  
  1469. ΓòÉΓòÉΓòÉ 5.13. Closing PCPRINT ΓòÉΓòÉΓòÉ
  1470.  
  1471. To close PCPRINT, 
  1472.  
  1473.  o press F3, or 
  1474.  
  1475.  o select Exit from the Profile pull-down, or 
  1476.  
  1477.  o select Close from the System Menu. 
  1478.  
  1479.  Note:  If you stop Communications Manager, you cannot restart it unless you 
  1480.  close PCPRINT first. (This is a CM limitation and not PCPRINT's fault.) 
  1481.  
  1482.  
  1483. ΓòÉΓòÉΓòÉ 5.14. Printing just one host document ΓòÉΓòÉΓòÉ
  1484.  
  1485. If you want PCPRINT to terminate automatically after having printed one host 
  1486. document, start PCPRINT with the ONCE option. For example, 
  1487.  
  1488. pcprint once rh="The note from David" pm=5 dest=note1.txt
  1489.  
  1490. PCPRINT will display its window while processing the document (or waiting for 
  1491. you to issue the commands on the host side to request the printout, if you 
  1492. haven't already done that). You can interrupt the processing by selecting 
  1493. Deactivate Host Print from the Print menu or the System Menu. 
  1494.  
  1495.  
  1496. ΓòÉΓòÉΓòÉ 6. Using PCPRINT with MVS TSO ΓòÉΓòÉΓòÉ
  1497.  
  1498. PCPRINT is made primarily for the VM environment. However, it is possible to 
  1499. print a document displayed with TSO ISPF BROWSE. 
  1500.  
  1501.  
  1502. ΓòÉΓòÉΓòÉ 6.1. Starting PCPRINT ΓòÉΓòÉΓòÉ
  1503.  
  1504. Start PCPRINT with a profile like the one supplied as PCPRINT.TSO: 
  1505.  
  1506. pcprint profile=c:\PCPRINT\pcprint.tso
  1507.  
  1508. PCPRINT TSO contains the following statements. If you want to understand how 
  1509. this works, please read How PCPRINT works. 
  1510.  
  1511. /screentm=3
  1512. /screenbm=0
  1513. /cmdline=2
  1514. /cmdcol=15
  1515. /msgsignal="L"
  1516. /top="OCATE 0"
  1517. /for="DOWN 21"
  1518. /eof="******************************** BOTTOM OF DATA"
  1519. /idline=1
  1520. /idcol=2
  1521. /idtext=BROWSE
  1522. /msgline=0
  1523. /msg="locate 0"
  1524.  
  1525.  
  1526. ΓòÉΓòÉΓòÉ 6.2. Printing an MVS file ΓòÉΓòÉΓòÉ
  1527.  
  1528. To print a file, 
  1529.  
  1530.   1. Display it with TSO ISPF BROWSE. 
  1531.  
  1532.   2. Type an L (letter ell) in upper case on the command line when you want 
  1533.      printing to start. Since TOP is defined as "OCATE 0", the command "LOCATE 
  1534.      0" will be executed. 
  1535.  
  1536.   3. When printing is complete, another "locate 0" will take you back to the 
  1537.      top of the file again (MSG command). This time locate is in lower case, to 
  1538.      avoid triggering a new printout. 
  1539.  
  1540.  
  1541. ΓòÉΓòÉΓòÉ 6.3. Limitations with MVS TSO ΓòÉΓòÉΓòÉ
  1542.  
  1543. Printer control characters in col 1 and table reference characters in col 2 are 
  1544. not supported in this environment. 
  1545.  
  1546.  
  1547. ΓòÉΓòÉΓòÉ 7. Using PCPRINT's Print Screen support ΓòÉΓòÉΓòÉ
  1548.  
  1549. This support allows you to print host session screens, formatted with headings 
  1550. and footings, by just pressing the Print Screen key. You can also copy the text 
  1551. on the host session screen to a file. 
  1552.  
  1553.  
  1554. ΓòÉΓòÉΓòÉ 7.1. Printing the host session screen ΓòÉΓòÉΓòÉ
  1555.  
  1556. To print the screen of a 3270 session, just press the Print Screen key. (Don't 
  1557. hold down the shift key.) If the 3270 session you are using is the "Current 
  1558. host session" for PCPRINT, PCPRINT will print the presentation space, in 
  1559. accordance with the options you have selected. If a running heading or footing 
  1560. is specified, and the string contains "%f", the %f will be replaced by "Session 
  1561. xxxx" where xxxx is the long session name. 
  1562.  
  1563. If for some reason the Print Screen key does not work, use this procedure: 
  1564.  
  1565.   1. Select the PCPRINT window or icon. 
  1566.  
  1567.   2. Press Ctrl-s or select Print Host Screen from the Print pull-down menu or 
  1568.      from the System Menu. 
  1569.  
  1570.  This procedure will work even if you forgot to put PCPRINT.DLL in a LIBPATH 
  1571.  directory. 
  1572.  
  1573.  Communications Manager also has a Print Screen function. This can be requested 
  1574.  by pressing shift-PrintScreen (unless keyboard remap has been used to move it 
  1575.  somewhere else). This function is not affected by PCPRINT. 
  1576.  
  1577.  In OS/2 2.x, there is also a general Print Screen function, which will print 
  1578.  an open window or the whole desktop (unless disabled in the System Settings 
  1579.  notebook). This function is also requested by pressing the PrintScreen key. To 
  1580.  avoid duplicates, PCPRINT disables the OS/2 Print Screen function for 3270 
  1581.  windows during startup. 
  1582.  
  1583.  You can only print text with PCPRINT. If you are displaying graphics, using 
  1584.  GDDM OS/2 Link, only the text on the screen (if any) is printed. To print the 
  1585.  graphics, stop PCPRINT and use the OS/2 2.x Print Screen function. 
  1586.  
  1587.  
  1588. ΓòÉΓòÉΓòÉ 7.2. Copying the screen to a file ΓòÉΓòÉΓòÉ
  1589.  
  1590. To copy the screen to a file, just select Printer - File... from the PCPRINT 
  1591. menu before pressing Print Screen. 
  1592.  
  1593. Each time you press Print Screen, the file will be appended. This way you can 
  1594. easily save a whole host dialog in a single file. 
  1595.  
  1596.  
  1597. ΓòÉΓòÉΓòÉ 7.3. Printing the host session screen once ΓòÉΓòÉΓòÉ
  1598.  
  1599. If all you want to do is to print the host session screen and then terminate 
  1600. PCPRINT, you can do this without ever seeing the PCPRINT window. Enter the 
  1601. following command: 
  1602.  
  1603. pcprint screen
  1604.  
  1605. This will print the host screen according to the specifications in PCPRINT.PRO. 
  1606. You can add other options on the command line, for example 
  1607.  
  1608. pcprint screen source=vmsess2 rh="This is the first VM error message"
  1609.  
  1610.  
  1611. ΓòÉΓòÉΓòÉ 8. Customizing the Host Print function ΓòÉΓòÉΓòÉ
  1612.  
  1613. This chapter describes a number of options which modify the way Host Print 
  1614. works. Normally, you need not worry about this. Read this section if 
  1615.  
  1616.  o you are using a translated version of OS/2, and/or a non-U.S. keyboard 
  1617.  
  1618.  o you don't want to use the standard PCPRINT XEDIT macro 
  1619.  
  1620.  o you want to understand more about how PCPRINT works. 
  1621.  
  1622.  
  1623. ΓòÉΓòÉΓòÉ 8.1. How PCPRINT works ΓòÉΓòÉΓòÉ
  1624.  
  1625. To use the customization options, you must understand the main logic of 
  1626. PCPRINT: 
  1627.  
  1628.   1. PCPRINT will look, at two seconds intervals, for a certain character in 
  1629.      the first position of the XEDIT command line. 
  1630.  
  1631.   2. If PCPRINT finds this character, it checks that the VM screen is formatted 
  1632.      by PCPRINT XEDIT. It does this by checking for the string "PCPRINT" 
  1633.      starting in line 20 column 17. If PCPRINT didn't do this, printing could 
  1634.      start accidentally. 
  1635.  
  1636.   3. If everything is OK, PCPRINT will 
  1637.  
  1638.      a. retrieve the message line, which may contain PCPRINT options 
  1639.      b. send a TOP command 
  1640.      c. print lines 4 through 19 
  1641.      d. send a FOR command 
  1642.      e. print lines 4 through 19 
  1643.      f. send a FOR command 
  1644.      g. etc 
  1645.  
  1646.         until "* * * End Of File * * *" is found. 
  1647.  
  1648.   4. PCPRINT will then send a "COMMAND QUIT" command or a "MSG PCPRINT 
  1649.      processing complete" command, depending on which character that triggered 
  1650.      PCPRINT to start printing. 
  1651.  
  1652.  
  1653. ΓòÉΓòÉΓòÉ 8.2. The customization options ΓòÉΓòÉΓòÉ
  1654.  
  1655. The behavior described above can be modified through the Host Screen Format and 
  1656. the Host Communication panels, both of which are available from the Options 
  1657. pull-down menu. You can change the values in the panels interactively until 
  1658. PCPRINT works as you want it to, and then save the options in a profile. Or you 
  1659. can create the profile using an editor and the keywords listed below. 
  1660.  
  1661.  
  1662. ΓòÉΓòÉΓòÉ 8.2.1. Host Screen Format options ΓòÉΓòÉΓòÉ
  1663.  
  1664. PCPRINT must know how the host screen is formatted to be able to retrieve 
  1665. documents from the host. The options in this dialog can be used to customize 
  1666. PCPRINT to your host environment. 
  1667.  
  1668. If you use VM and the standard PCPRINT host support, there is no need to change 
  1669. these values. 
  1670.  
  1671. For TSO, there is a sample profile in PCPRINT PACKAGE called PCPRINT TSO. 
  1672.  
  1673. Command Line 
  1674.  
  1675. This is he line number for the line where the command input area is. (In the VM 
  1676. XEDIT case, this is the area after ====> .) 
  1677.  
  1678. A negative number means 'counted from the bottom'. So -2 means line 23 on a 
  1679. regular 3270 model 2 session. 
  1680.  
  1681. The PCPRINT default is -2. 
  1682.  
  1683. This option is coded as CMDLINE=number in a PCPRINT profile. 
  1684.  
  1685. Command Column 
  1686.  
  1687. This is he column where the first character of a host command is entered. 
  1688.  
  1689. The PCPRINT default is 7. 
  1690.  
  1691. This option is coded as CMDCOL=number in a PCPRINT profile. 
  1692.  
  1693. Identification Line 
  1694.  
  1695. The "Identification" concept is used to ensure that the expected panel is on 
  1696. the host screen before lines to printed are retrieved or a command is issued. 
  1697.  
  1698. PCPRINT verifies that the Identification Text is on the Identification Line, 
  1699. starting in the Identification Column. 
  1700.  
  1701. A negative number means 'counted from the bottom'. So -5 means line 20 on a 
  1702. regular 3270 model 2 session. 
  1703.  
  1704. The PCPRINT default is -5. 
  1705.  
  1706. This option is coded as IDLINE=number in a PCPRINT profile. 
  1707.  
  1708. Identification Column 
  1709.  
  1710. PCPRINT verifies that the Identification Text is on the Identification Line, 
  1711. starting in this column. 
  1712.  
  1713. The PCPRINT default is 17. 
  1714.  
  1715. This option is coded as IDCOL=number in a PCPRINT profile. 
  1716.  
  1717. Identification Text 
  1718.  
  1719. PCPRINT verifies that this text is on the Identification Line, starting in the 
  1720. Identification Column. 
  1721.  
  1722. The PCPRINT default is "PCPRINT". 
  1723.  
  1724. This option is coded as IDTEXT="string" in a PCPRINT profile. 
  1725.  
  1726. Message Line 
  1727.  
  1728. This is the line number for the line where the host PCPRINT command is echoed. 
  1729.  
  1730. Any text on this line following the first left parenthesis will be used as a 
  1731. PCPRINT option. 
  1732.  
  1733. To suppress this feature, set the message line number to 0. 
  1734.  
  1735. A negative number means 'counted from the bottom'. So -3 means line 22 on a 
  1736. regular 3270 model 2 session. 
  1737.  
  1738. The PCPRINT default is -3. 
  1739.  
  1740. This option is coded as MSGLINE=number in a PCPRINT profile. 
  1741.  
  1742. Screen Top Margin 
  1743.  
  1744. This is the number of lines to be skipped at the top of each screen. 
  1745.  
  1746. The PCPRINT default is 3. 
  1747.  
  1748. This option is coded as SCREENTM=number in a PCPRINT profile. 
  1749.  
  1750. Screen Bottom Margin 
  1751.  
  1752. This is the number of lines to be skipped at the bottom of each screen. 
  1753.  
  1754. The PCPRINT default is 5. 
  1755.  
  1756. This option is coded as SCREENBM=number in a PCPRINT profile. 
  1757.  
  1758.  
  1759. ΓòÉΓòÉΓòÉ 8.2.2. Host Communication options ΓòÉΓòÉΓòÉ
  1760.  
  1761. These options define the signals and commands used to communicate between the 
  1762. PC part and the host part of PCPRINT. 
  1763.  
  1764. If you use VM and the standard PCPRINT host support, there is no need to change 
  1765. these values. 
  1766.  
  1767. For TSO, there is a sample profile in PCPRINT PACKAGE called PCPRINT TSO. 
  1768.  
  1769. Advanced users may include EHLLAPI keyboard mnemonics in the TOP, FOR, QQ and 
  1770. MSG strings. For example, @R for Reset or @8 for PF8. Use at your own risk. See 
  1771. EHLLAPI Programming Reference (S04G-1027) for the complete list of codes. 
  1772.  
  1773. Primary trigger character 
  1774.  
  1775. When PCPRINT finds this character in the first position of the command input 
  1776. area, it will start retrieving the document. 
  1777.  
  1778. The PCPRINT default is ". 
  1779.  
  1780. This option is coded as QQSIGNAL=character in a PCPRINT profile. 
  1781.  
  1782. Alternate trigger character 
  1783.  
  1784. Works the same as the Primary trigger character. The only difference is that 
  1785. the Alternate final command will be issued last instead of the Primary final 
  1786. command. 
  1787.  
  1788. The PCPRINT default is a grave accent (ASCII x'60'). 
  1789.  
  1790. This default is fine for the U.S., but must be changed in most other countries. 
  1791.  
  1792. This option is coded as MSGSIGNAL=character in a PCPRINT profile. 
  1793.  
  1794. Checking Interval 
  1795.  
  1796. This value determines how often PCPRINT will look for the trigger characters in 
  1797. the command input area. The unit is seconds. 
  1798.  
  1799. If you are running many copies of PCPRINT at the same time (monitoring 
  1800. different sessions), or if you are using a comparatively slow PC, you may want 
  1801. to increase the checking interval. Otherwise other programs, including the 3270 
  1802. emulator, may be slowed down by PCPRINT. 
  1803.  
  1804. But if you increase this value, PCPRINT will not respond as fast to your host 
  1805. printing requests. 
  1806.  
  1807. The PCPRINT default is 2 seconds. 
  1808.  
  1809. If you change this value, the change will not take effect until you restart 
  1810. PCPRINT. Therefore you should select Profile - Save after making the change. 
  1811.  
  1812. This option is coded as INTERVAL=number in a PCPRINT profile. 
  1813.  
  1814. Initial command 
  1815.  
  1816. This is the first command sent to the host when one of the trigger characters 
  1817. is found in the command input area. 
  1818.  
  1819. The PCPRINT default is "TOP". 
  1820.  
  1821. This option is coded as TOP="string" in a PCPRINT profile. 
  1822.  
  1823. Page forward command 
  1824.  
  1825. This command will be sent to the host when a screen full of data has been 
  1826. processed. 
  1827.  
  1828. The PCPRINT default is "FOR". 
  1829.  
  1830. This option is coded as FOR="string" in a PCPRINT profile. 
  1831.  
  1832. End-of-file string 
  1833.  
  1834. PCPRINT will look for this string to indicate the end of the document. 
  1835.  
  1836. The string MUST start in column 1. 
  1837.  
  1838. The comparison is made without regard for lower and upper case. Only as many 
  1839. bytes as are specified here are used in the comparison. 
  1840.  
  1841. The PCPRINT default is "* * * End Of File * * *". 
  1842.  
  1843. This option is coded as EOF="string" in a PCPRINT profile. 
  1844.  
  1845. Primary final command 
  1846.  
  1847. This command will be sent to the host after the End-of-file string has been 
  1848. detected, if processing was triggered by the primary trigger character. 
  1849.  
  1850. The PCPRINT default is "COMMAND QUIT". 
  1851.  
  1852. This option is coded as QQ="string" in a PCPRINT profile. 
  1853.  
  1854. Alternate final command 
  1855.  
  1856. This command will be sent to the host after the End-of-file string has been 
  1857. detected, if processing was triggered by the alternate trigger character. 
  1858.  
  1859. The PCPRINT default is "MSG PCPRINT processing complete". 
  1860.  
  1861. This option is coded as MSG="string" in a PCPRINT profile. 
  1862.  
  1863. Emulator task title 
  1864.  
  1865. This text identifies an entry in the OS/2 Task List as a 3270 session. You only 
  1866. need to change this if you are using a translated version of OS/2. For example, 
  1867. when using the French version, specify "Emulateur 3270". 
  1868.  
  1869. The PCPRINT default is "3270 Emulator". 
  1870.  
  1871. This option is coded as EMULATOR="string" in a PCPRINT profile. 
  1872.  
  1873.  
  1874. ΓòÉΓòÉΓòÉ 8.3. National Language Support ΓòÉΓòÉΓòÉ
  1875.  
  1876. If you are using a translated version of OS/2, you may have to specify a 
  1877. Emulator task title that is different from the default "3270 Emulator". See the 
  1878. preceding paragraph. 
  1879.  
  1880. If you are using a non-U.S. keyboard, or other code pages than the ones used 
  1881. normally in the U.S., you may have to change the Alternate trigger character. 
  1882. Check which character that is displayed in the XEDIT command area when you try 
  1883. to print a note from RDRLIST/PEEK, and then set this as the Alternate trigger 
  1884. character (MSGSIGNAL=x). 
  1885.  
  1886. You might also want use the C=nn and PL=nn options to set the paper length and 
  1887. number of lines per page to something else than 66. 
  1888.  
  1889. If you put all these options in PCPRINT.PRO, they will automatically take 
  1890. effect when you start PCPRINT. 
  1891.  
  1892. All messages and other text strings used in PCPRINT are stored in a so-called 
  1893. resource file. All help information is in another separate file. This makes it 
  1894. relatively easy to translate PCPRINT to another language. 
  1895.  
  1896.  
  1897. ΓòÉΓòÉΓòÉ 9. Problem determination ΓòÉΓòÉΓòÉ
  1898.  
  1899.  
  1900. ΓòÉΓòÉΓòÉ 9.1. General hints ΓòÉΓòÉΓòÉ
  1901.  
  1902.   1. If you are using the host print support, try to isolate the problem to the 
  1903.      host side or the PC side. The best way of doing this is to 
  1904.  
  1905.      a. find a colleague who has PCPRINT working, 
  1906.  
  1907.      b. log on with your VM or TSO id from his workstation. If PCPRINT now 
  1908.         works, there is something wrong with the PC side of your installation. 
  1909.         Review the "Installing PCPRINT" section. 
  1910.  
  1911.      c. ask him to log on with his id from your workstation. If PCPRINT now 
  1912.         works, there is something wrong with the host side. If using VM, check 
  1913.         that you access the same versions of PCPRINT EXEC, PCPRINT XEDIT, 
  1914.         WORKSTAT FILE and $$PRNT$$ $$FILE$$ as your colleague. 
  1915.  
  1916.   2. If the problem seems to be with the Host Print function, 
  1917.  
  1918.     o Read How PCPRINT works. 
  1919.  
  1920.     o Check the values in the Host Screen Format and Host Communication panels 
  1921.       and make sure they are correct. 
  1922.  
  1923.  
  1924. ΓòÉΓòÉΓòÉ 9.2. PCPRINT error messages ΓòÉΓòÉΓòÉ
  1925.  
  1926. PCPRINT error messages are shown in a dialog box, with the following 
  1927. explanation available through the Help button: 
  1928.  
  1929. The following string cannot be found in the task list 
  1930.  
  1931. PCPRINT expects to find the string in the Task List entries for the 3270 
  1932. sessions. If you are using a translated version of OS/2, you have to select 
  1933. Host Communication from the Options menu and change 3270 emulator task title. 
  1934.  
  1935. PCPRINT.DLL could not be loaded. 
  1936.  
  1937. Make sure PCPRINT.DLL is in a directory listed in the LIBPATH statement in 
  1938. CONFIG.SYS. 
  1939.  
  1940. Until this error is corrected, automatic session selection will not work. And 
  1941. print screen cannot be done by pressing the Print Screen key, only by selecting 
  1942. Print host screen from the Print menu. 
  1943.  
  1944. PCPRINT.DLL is corrupt. 
  1945.  
  1946. Make sure PCPRINT.DLL has been correctly downloaded and that you are not using 
  1947. an old version. 
  1948.  
  1949. Until this error is corrected, automatic session selection will not work. And 
  1950. print screen cannot be done by pressing the Print Screen key, only by selecting 
  1951. Print host screen from the Print menu. 
  1952.  
  1953. PCPRINT.DLL is not responding. 
  1954.  
  1955. Make sure PCPRINT.DLL has been correctly downloaded and that you are not using 
  1956. an old version. 
  1957.  
  1958. Until this error is corrected, automatic session selection will not work. And 
  1959. print screen cannot be done by pressing the Print Screen key, only by selecting 
  1960. Print host screen from the Print menu. 
  1961.  
  1962. Your FCLDLGP.DLL is back-level. Get the latest version. 
  1963.  
  1964. PCPRINT wanted to use FCLDLGP.DLL but obtained a version of this file which was 
  1965. too old for PCPRINT to use. Use PMSEEK to find all copies of FCLDLGP.DLL in 
  1966. your system and erase them. Then install the version which comes with the 
  1967. latest version of PCPRINT. 
  1968.  
  1969. Until this error is corrected, PCPRINT will use a very rudimentary file 
  1970. selection dialog. 
  1971.  
  1972. Error printing this PC file 
  1973.  
  1974. The file could not be printed. The most probable cause is an incorrect file 
  1975. name. 
  1976.  
  1977. Error printing host screen. 
  1978.  
  1979. The host screen could not be printed. 
  1980.  
  1981.  
  1982. ΓòÉΓòÉΓòÉ 9.3. OfficeVision/VM Error messages ΓòÉΓòÉΓòÉ
  1983.  
  1984. If you get an error message from OfficeVision/VM when you try to print a 
  1985. OfficeVision/VM document, you probably haven't set up WORKSTAT FILE and/or 
  1986. $$PRNT$$ $$FILE$$ exactly as specified in chapter 3. 
  1987.  
  1988.  
  1989. ΓòÉΓòÉΓòÉ 9.4. Formatting problems ΓòÉΓòÉΓòÉ
  1990.  
  1991. If PCPRINT doesn't seem to honor IBM-defined or ANSI control characters, try 
  1992. printing the document with Host Print inactive. This will give you a chance to 
  1993. check what is displayed on the XEDIT command line before PCPRINT.EXE issues the 
  1994. TOP command. The first character should be a grave accent or a double quote. 
  1995. The second character should be M for a file with IBM-defined control 
  1996. characters, A for a file with ANSI control characters, T for a file with table 
  1997. reference characters. If it is not, using the CC, ANSI or TRC option might be 
  1998. the solution. 
  1999.  
  2000.  
  2001. ΓòÉΓòÉΓòÉ 9.5. Collisions with other communication programs ΓòÉΓòÉΓòÉ
  2002.  
  2003. PCPRINT will not monopolize the host session. It will connect to the host 
  2004. session for a few milliseconds once every two seconds to see if there is work 
  2005. for it to be done. You don't have to stop PCPRINT to run SEND, RECEIVE, 
  2006. CMMOUSE, or other host communication programs. 
  2007.  
  2008. Occasionally, the other communication program may display an error message, 
  2009. complaining that the host session is already in use by PCPRINT. This only means 
  2010. it tried to connect to the host session during the few milliseconds PCPRINT is 
  2011. connected. Just try again. 
  2012.  
  2013. If this happens too often, there are several things you can do: 
  2014.  
  2015.   1. You can decrease the risk for collisions by increasing the Checking 
  2016.      Interval. 
  2017.  
  2018.   2. You can deactivate Host Print before starting the other communication 
  2019.      program. Or you can start PCPRINT with the STARTINACTIVE option and 
  2020.      activate Host Print only when you want to PCPRINT a document. See 
  2021.      Controlling the Host Print function. 
  2022.  
  2023.   3. You can use the PCPRCTRL program. The following is the help information 
  2024.      displayed if you enter PCPRCTRL without parameters. 
  2025.  
  2026.  
  2027.           Syntax: PCPRCTRL function session_id
  2028.  
  2029.           where "function" is SUSPEND, RESUME, CHECK or STOP
  2030.           and "session_id" is a one-character short session name.
  2031.  
  2032.           SUSPEND: This will stop PCPRINT from trying to connect to the
  2033.                    specified session. Use to avoid collisions with
  2034.                    other communication programs.
  2035.  
  2036.           RESUME:  PCPRINT will resume normal operation for the specified session.
  2037.  
  2038.           CHECK:   PCPRCTRL will display the current status of the specified session.
  2039.  
  2040.           STOP:    This can be used to stop PCPRINT from a .CMD file.
  2041.  
  2042.           Example: A CMD file for file downloading might contain:
  2043.                    d:\pcprint\pcprctrl suspend a
  2044.                    (statements to run the file downloading program)
  2045.                    d:\pcprint\pcprctrl resume a
  2046.  
  2047.           PCPRCTRL requires PCPRINT release 2.6 or later.
  2048.  
  2049.  
  2050. ΓòÉΓòÉΓòÉ 9.6. "Nothing happens" ΓòÉΓòÉΓòÉ
  2051.  
  2052. If the note or file is displayed on your screen but not printed, check 
  2053.  
  2054.   1. that PCPRINT.EXE is running and displays "Host Print status: Active - 
  2055.      waiting". 
  2056.  
  2057.   2. that "Current host session: " shows the right host session. 
  2058.  
  2059.   3. that there is a special character (EBCDIC x'79', which is a grave accent 
  2060.      in the U.S.) or a double quote (") in the first position of the XEDIT 
  2061.      command input area. 
  2062.  
  2063.   4. that the same character is shown as Primary trigger character or Alternate 
  2064.      trigger character in the Options - Host Communication panel. 
  2065.  
  2066.   5. that PCPRINT knows where the XEDIT command input area is. Check Command 
  2067.      Line and Command Column in the Options - Host Screen Format panel. 
  2068.  
  2069.   6. that the string PCPRINT (or whatever you have specified as Identification 
  2070.      Text, if you have changed the default) is on the screen. 
  2071.  
  2072.   7. that PCPRINT looks for the PCPRINT string in the right place. Check 
  2073.      Identification Line and Identification Column in the Host Screen Format 
  2074.      panel. 
  2075.  
  2076.   8. that you haven't used PCPRCTRL to suspend the host session. 
  2077.  
  2078.  If PCPRINT works when your host session is defined as a model 2 screen, but 
  2079.  not when it is defined as a model 3, 4, or 5 screen, it is probably because 
  2080.  there is something wrong with your terminal definitions on the host side. The 
  2081.  XEDIT command line with model 3, for example, should be on row 31. If it is on 
  2082.  row 23 even though you are running as a 32-line terminal, talk to your host 
  2083.  support people. Using PVM or VCNA sometimes causes this type of problem.