PRINT

Syntax

          ┌◄────────── , ─────────┐
── PRINT ─┴─<print specification>─┴────────────────────────────────────►
►─┬─────────────────────────────────────────────────────────┬──────────┤
  └─ ; PRINTDEFAULTS = ( <print default assignment list> ) ─┘

<print specification>

──┬─<file title>──────┬─┬──────────────────────────────────────┬───────┤
  └─<directory title>─┘ │     ┌◄─────────── , ───────────┐     │
                        └─ ( ─┴─<print attribute phrase>─┴─ ) ─┘

<print default assignment list>

  ┌◄────────────── , ─────────────┐
──┴─┬─<print attribute phrase>──┬─┴────────────────────────────────────┤
    ├─<print modifier phrase>───┤
    └─ - ─┬─<print attribute>─┬─┘
          └─<print modifier>──┘

Explanation

CANDE recognizes the PRINT command as a Work Flow Language (WFL) command; that is, CANDE passes the command to WFL for processing. WFL then passes a PRINT request to the Print System and the Remote Print System for asynchronous processing. For additional information, refer to the WFL Programming Reference Manual and the Print System Guide.

Note: Because CANDE can run with different release versions of the MCP and other software, it is possible that a feature of software might not work as described in this version of the manual. The most common type of problem occurs when the version of CANDE being used is from a newer release than the active MCP and Print System and Remote Print System software. In this situation, attempting to use a new print attribute that is not supported by the older MCP and Print System software might cause an error or unexpected result.

<print specification>

The print specifications in the PRINT statement specify the files to be printed. Each print specification can include its own print attribute phrases, which affect only the specified file or directory.

<print attribute phrase>

Various print attribute phrases can be included in the PRINT statement to specify print-related file attributes that control the creation, routing, and formatting of backup files. These file attributes are described in the Print System Guide and the File Attributes Programming Reference Manual.

<print modifier phrase>

A print modifier phrase can be included in a PRINT statement to specify additional requirements for the processing of a print request. Print modifiers can be used with a PRINT statement only through the PRINTDEFAULTS task attribute. For more information about print modifiers, see the Print System Guide.

PRINTDEFAULTS Option and <print default assignment list>

A PRINTDEFAULTS specification can be included at the end of a PRINT statement to provide a new set of default values for some print-related file attributes and print modifiers. These values replace defaults that were inherited from the job or from the system.

The print attribute phrases and print modifier phrases that appear in the print default assignment list are merged into the current print defaults. The – <print modifier> and – <print attribute> forms reestablish the system default value for that print modifier or print-related file attribute.

If a print specification and the PRINTDEFAULTS specification both assign values to the same print-related file attribute, then the value assigned in the print specification takes precedence. For details, see the Print System Guide.

Examples

In the following examples, the percent sign (%) indicates the defined continuation character; refer to the CONTINUE command for more information about the continuation character.

The following are simple PRINT statements that cause the specified files to be printed:

PRINT DRONE/CLONE;
PRINT (JOHNS)ADD/BACK ON THREEPACK, (CAY)INVENTORY/LIST;

The following PRINT statements illustrate a print attribute phrase as part of the print specification:

PRINT (WENDY)FREE/CODE (BANNER = TRUE,%
#%
NOTE="Review printout for Bill Wyman");
PRINT (JAKE)SCRAG/EXTRAS (SAVEPRINTFILE = TRUE, DESTINATION="MYPRINTER");

The following example includes individual print specifications and common print modifiers in a PRINTDEFAULTS specification:

PRINT (LIZA)CAVE/DEPTHS (DESTINATION="LP5",PRINTCHARGE=4328),%
#%
(GEORGE)WATER/COMP (DESTINATION="IP7",PRINTCOPIES=3);%
#%
PRINTDEFAULTS=(HEADER=SUPPRESSED,TRAILER=UNCONDITIONAL);

The following PRINT statements illustrate a variety of PRINTPARTIAL option specifications.

PRINT (ACCT)LEDGER/AUGUST (PRINTPARTIAL="LINES 20-35")

PRINT (ACCT)LEDGER/3RDQTR (PRINTPARTIAL="SEQ 100-900 COLUMN 1-72")

PRINT (ACCT)LEDGER/3RDQTR (PRINTPARTIAL="SEQ 1000-END @ 40-72") 

The following PRINT statement illustrates typical PAGECOMP strings for a remote printer. Remember that frequently needed PAGECOMP strings can be stored in ordinary DATA or SEQ disk files.

The following example prints a file in portrait orientation.

PRINT EXEC/SUMMARY (PAGECOMP="PORTRAIT CPL=72 LPP=60 LM=0.8
                              FONT DEFAULT=HELVETICA(10 PT)")