Create the GSVIEW data set, and specify the printer name, printer description, printer prototype, and commands to be used for print preview. The GSVIEW data set contains the variables whose values contain the information that is needed to produce the printer definitions.


The NAME variable specifies the printer name that will be associated with the rest of the attributes in the printer definition data record.


The DESC variable specifies the description of the printer.


The MODEL variable specifies the printer prototype to use when defining this printer.


The VIEWER variable specifies the host system commands to be used for print preview. GSVIEW must be installed on your system and the value for VIEWER must include the path
to find it. You must enclose the value in single quotation marks because of the %s. If you use double quotation marks, SAS will assume that %s is a macro variable.


DEVICE and DEST are required variables, but no value is needed in this example. Therefore,
a "dummy" or blank value should be assigned.


data gsview; 
name = "Ghostview"; 
desc = "Print Preview with Ghostview"; 
model= "PostScript Level 2 (Color)"; 
viewer = 'ghostview %s'; 
device = "Dummy";
dest = " ";