Contents Computing at Cornell Home Page Site Index Search
Contents About: Services Policies Security News Help For: Students Faculty Staff Technical Support Providers CIT Contact List
 
Computing at Cornell CIT Services

Using EZ-Print from the CornellC Mainframe

EZ-Print is available to those who use CornellC for administrative work as well as for other purposes:

  1. NATURAL. Print transaction documents such as financial statements or purchase requisitions.
  2. General CMS. Print files you have created and files given to you by other people.

Note for NATURAL (Administrative Application) users:

If you use NATURAL, keep in mind that the printing function in most applications is already configured. If your transactions are sent to your LAN printer or stand-alone printer automatically, then someone has already configured the application to use EZ-Print and you don't need to do anything.

If you want to print from the Purchasing System (APPS) and your printer does not appear in the printer table, all you need to do is register your printer with CIT by filling out the online form. You will get a reply from the Network Operations Center (NOC) when your printer has been registered and within 2-3 days your printer will show up in APPS in the printer table.

There are two ways to use EZ-Print from CornellC:

  1. Use the SPOOL and TAG commands to direct print files to the PSP (Print Server Program) Service Virtual Print Server. General CMS printing will almost always employ this method. People using NATURAL can also rely on this method of printing and may find it "built in" to applications.
  2. Use the LPR command. This method is useful for files with records that are too long to be handled by a virtual printer; typically 133 characters is the limit. It is also used for printing ASCII files.


Contents

  1. Using SPOOL and TAG Commands
  2. Using TAG Options to Customize Your Printing
  3. Getting Help with SPOOL and TAG Commands
  4. Using the LPR Command (Printing Long-Record and ASCII Files)
  5. Managing Print Jobs


Using SPOOL and TAG Commands

In CMS, you use the SPOOL command to indicate the service virtual machine to which you want to send a file. You use the TAG command to describe how you want the file printed (you may specify the font, its size, the number of copies, etc.).

1. At the Ready; prompt, type the SPOOL command like this:

spool printer to psp

You can abbreviate this command like this:

spool prt psp

The system responds with the Ready; prompt.

2. Type the TAG command. The full command will differ depending on how you want your printed file to appear, however the first part of the command should always be structured like this:

TAG DEV PRINTER PRT={printer}

substituting the EZ-Print name of your printer for the word printer. In the EZ-Print environment, your printer has a different name than in the LAN environment. You may need to know this name before you can print a file. If you don't know it, check with your network or system administrator. For example, if your printer name is "ourlaser," type your command like this:

tag dev printer prt=ourlaser

The system responds with the Ready; prompt.

3. Now type a command such as PRINT, that does printing. For example, type:

print test file

The system responds with several messages. The last and most meaningful of which is "Print file successfully sent to remote print server." People using NATURAL may not see any messages.

Please note that the SPOOL and TAG commands remain in effect during your current session. Reissue the TAG command if you want to print to a different EZ-Print printer or print with different options.

Using TAG Options to Customize Your Printing

The basic TAG command can be followed by any of a number of options depending on how you want your printed file to appear. The table below contains a list of the options; some examples of how to use them follow. Some options have defaults - that is, a particular setting is assumed unless you specify otherwise. In those cases where a default exists, it is listed in the chart. All options work with both PostScript (Apple LaserWriter and Hewlett-Packard Postscript) and HP PCL (Hewlett-Packard Printer Control Language) printers unless otherwise noted in the chart or elsewhere below.

Command Line Option

Purpose and Results

PMODE=mode
Define the paper orientation. Replace the word mode with L for landscape (the long edge of the paper goes side-to-side) or P for portrait (the long edge of the paper goes up and down). The default is P.

FSIZE=points
Define the font size in points. Replace the word points with a number. For example, many documents are printed in 10, 11 or 12 point for the greatest readability. The default for portrait mode is 11; for landscape mode it is 8. For HP PCL printers, you can specify a font size only if you also specify a Helvetica or Times-Roman font (see FONT below).

TMAR=inches/lines
Define the top margin. For PostScript printers, you define the top margin in inches. For HP PCL printers, you define the top margin in lines. Replace inches/lines with a number. For example, entering 1 indicates a one-inch margin on a PostScript printer and a one-line margin on an HP PCL printer. The default is 0.5 on PostScript printers. The HP PCL default is 1 (one), the first line position being the first printable line on the page.

LMAR=inches/columns
Define the left margin. For PostScript printers, you define the left margin in inches. For HP PCL printers you define the left margin in terms of columns or spaces. Replace inches/columns with a number. For example, entering 1 indicates a one-inch margin on a PostScript printer and a one-column margin on an HP PCL printer. The PostScript default is 0.5. The HP PCL default is column 1 (one).

COPIES=number
Indicate the number of copies you want to print. The default is 1.

COVER=Y/N
Indicate whether or not you want to print a cover sheet. A cover sheet is an extra sheet printed with your file that lists who printed the file, the name of the file, the date, and job name if there is one (see below). Some people feel that cover sheets waste paper. If your printer is used by only a few people, you can probably disable the COVER option with no problem. If your printer is used by many people, it will reduce confusion to use cover sheets. Use Y to print a cover sheet. Use N not to print a cover sheet.

The default is for cover sheets to be printed, but the person who registered your printer may have specified that it not print cover pages. In this case, you need to include the COVER=Y option to get a cover page.

FONT=abbreviation
Indicate the font you want to use. Replace the word abbreviation with one of the following 3-letter abbreviations.

PostScript Fonts

AVA-Avant Garde-Book HNA-Helvetica-Narrow
BOO-Bookman-Light NEW-New Century Schoolbook
CHA-ZapfChancery-Medium Italic PAL-Palatino-Roman
DEF-Courier (standard default) SYM-Symbol
DIN-ZapfDingbats TIM-Times-Roman
HEL-Helvetica  

HP PCL Fonts

BWY-Broadway OPT-Optima
DEF-Courier (standard default) PRE-Presentations
GOT-Gothic PTG-Prestige
HEL-Helvetica TIM-Times-Roman
LIN-Line Printer URM-University-Roman
NEW-New Century Schoolbook  

JN=jobname
Indicate a job name for the cover sheet. Replace the word jobname with a name that identifies the file.

PS=Y
Indicate that you are sending a PostScript file. Use this option only if the file you are printing is already in PostScript format and needs no additional formatting.

LIT=Y
Indicate that carriage controls should be eliminated if you want a compressed draft copy.

DUPLEX=Y
Indicate the file should be printed on both sides of the paper. This option works only if your printer supports duplex printing.

Examples:

To print three copies of a document on your printer named depthp, type the command like this:

tag dev prt prt=depthp copies=3

To print a file in landscape mode with a font size of 10, a font type of Helvetica, and no cover sheet on your printer named floortwo, type the command like this:

tag dev prt prt=floortwo pmode=l fsize=10 font=hel cover=n

To print a file with customized margins on your PostScript printer named basement, type the command like this:

tag dev printert prt=basement tmar=0.75 lmar=1.0

Getting Help with SPOOL and TAG Commands

More information about SPOOL and TAG and other CMS commands is available via online help. Type:

Help spool

or

help tag

Using the LPR Command (Printing Long-Record and ASCII Files)

The LPR (line printer) command can be used to print files on an EZ-Pint printer or other LPD-enabled system. It can print a file that has a longer record length than a CMS printer will accept. If this happens in CMS, you will see a message, in response to the LPR command, indicating that the record length of the file exceeds the allowable maximum.

To print a file using the LPR command, you should first use the LPRSET command in CMS to specify the printer and host you want to use with EZ-Print. Once they are specified with LPRSET, you don't need to name them with the LPR command described below.

Structure the LPRSET command like this:

LPRSET printername host (permanent

For example, to specify ourlaser as your EZ-Print printer and PRTSERV1 as your local host enter the following:

lprset ourlaser prtserv1 (permanent

Then structure the LPR command like this:

LPR filename filetype filemode

For example, if the file identifier is FALL SCHEDULE A and the printer's name is ourlaser, type:

lpr fall schedule

The system responds "*SERVICE TCPIP obtained at mode X* Ready;" The message you see may indicate a different mode.

Limited options are available for use with the LPR command. They are presented in the online help for LPR. Type:

help lpr

Managing Print Jobs

You can use the commands described below to cancel printing or to find out information about a file you are printing with EZ-Print.

First use the LPRSET command described above to specify the printer and host you want to use with EZ-Print if you have not already done so.

Listing Jobs Waiting to Be Printed: the LPQ Command

Use the LPQ command (line printer query) to list the files waiting to be printed on your printer. Structure the command like this if you want to see only the files that belong to you:

LPQ jobid

The jobid is your userid. For example, if your userid is ter, type:

lpq ter

Structure the command like this if you want to see all the files waiting to be printed on your printer:

LPQ

The LPQ command lists all the files waiting to be printed. Note that it displays a job number for each file. Use this job number with the LPRM command described next, if you want to cancel the printing request.

Removing Jobs Waiting to Print: the LPRM Command

Use the LPRM command (line printer remove) to stop a file from being printed when you have already sent it with EZ-Print. Structure the command like this:

LPRM jobnumber

Note that you can get the job number by issuing the LPQ command described above. You can cancel only your own jobs.

Getting Help with LPRSET, LPQ and LPRM

More information about all the LPR commands is available via online help. Type:

HELP commandname

For example:

help lprm


Computing at Cornell Homepage CUinfo CIT Contact List Send Us Feedback

Last updated: May 25, 2007