Base SAS 9.1 Procedures Guide, Volumes 1, 2, 3 and 4

Summary of Valid Variables

To create your printer definitions, you must create a SAS data set whose variables contain the appropriate printer attributes. The following table lists and describes both the required and the optional variables for this data set.

Variable Name

Variable Description

Required

 
 

DEST

Destination

 

DEVICE

Device

 

MODEL

Prototype

 

NAME

Printer name

Optional

 
 

BOTTOM

Default bottom margin

 

CHARSET

Default font character set

 

DESC

Description

 

FONTSIZE

Point size of the default font

 

HOSTOPT

Host options

 

LEFT

Default left margin

 

LRECL

Output buffer size

 

OPCODE

Operation code

 

PAPERIN

Paper source or input tray

 

PAPEROUT

Paper destination or output tray

 

PAPERSIZ

Paper size

 

PAPERTYP

Paper type

 

PREVIEW

Preview

 

PROTOCOL

Protocol

 

RES

Default printer resolution

 

RIGHT

Default right margin

 

STYLE

Default font style

 

TOP

Default top margin

 

TRANTAB

Translation table

 

TYPEFACE

Default font

 

UNITS

CM or IN units

 

VIEWER

Viewer

 

WEIGHT

Default font weight

Required Variables

To create or modify a printer, you must supply the NAME, MODEL, DEVICE, and DEST variables. All the other variables use default values from the printer prototype that is specified by the MODEL variable.

To delete a printer, specify only the required NAME variable.

The following variables are required in the input data set:

DEST

specifies the output destination for the printer.

Operating Environment Information: DEST is case sensitive for some devices.

Restriction: DEST is limited to 1023 characters .

DEVICE

specifies the type of I/O device to use when sending output to the printer. Valid devices are listed in the Printer Definition wizard and in the SAS Registry Editor.

Restriction: DEVICE is limited to 31 characters.

MODEL

specifies the printer prototype to use when defining the printer.

For a valid list of prototypes or model descriptions, you can look in the SAS Registry Editor under CORE\PRINTING\ PROTOTYPES .

Tip: While in interactive mode, you can invoke the registry with the REGEDIT command.

Tip: While in interactive mode, you can invoke the Print Setup dialog (DMPRTSETUP) and press New to view the list that is specified in the second window of the Printer Definition wizard.

Restriction: MODEL is limited to 127 characters.

NAME

specifies the printer definition name that will be associated with the rest of the attributes in the printer definition.

The name is unique within a given registry. If a new printer definition contains a name that already exists, then the record will not be processed unless the REPLACE option has been specified or unless the value of the OPCODE variable is Modify .

Restriction: NAME must have the following features:

  • It is limited to 127 characters.

  • It must have at least one nonblank character.

  • It cannot contain a backslash.

Note: Leading and trailing blanks will be stripped from the name.

Optional Variables

The following variables are optional in the input data set:

BOTTOM

CHARSET

DESC

FONTSIZE

HOSTOPT

LEFT

LRECL

OPCODE

PAPERIN

PAPEROUT

PAPERSIZ

PAPERTYP

PREVIEW

PROTOCOL

RES

RIGHT

STYLE

TOP

TRANTAB

TYPEFACE

UNITS

VIEWER

WEIGHT

Категории