Create the PRINTERS data set and specify which actions to perform on the printer definitions. The PRINTERS data set contains the variables whose values contain the information that is needed to produce the printer definitions.
The MODEL variable specifies the printer prototype to use when defining this printer.
The DEVICE variable specifies the type of I/O device to use when sending output to the printer.
The DEST variable specifies the output destination for the printer.
The OPCODE variable specifies which action (add, delete, or modify) to perform on the printer definition.
The first Add operation creates a new printer definition for Color PostScript in the SAS registry, and the second Add operation creates a new printer definition for ColorPS in the SAS registry.
The Mod operation modifies the existing printer definition for LaserJet 5 in the registry.
The Del operation deletes the printer definitions for Gray PostScript and test from the registry.
The & specifies that two or more blanks separate character values. This allows the name and model value to contain blanks.
data printers; length name $ 80 model $ 80 device $ 8 dest $ 80 opcode $ 3 ; input opcode $& name $& model $& device $& dest $&; datalines; add Color PostScript PostScript Level 2 (Color) DISK sasprt.ps mod LaserJet 5 PCL 5 DISK sasprt.pcl del Gray PostScript PostScript Level 2 (Gray Scale) DISK sasprt.ps del test PostScript Level 2 (Color) DISK sasprt.ps add ColorPS PostScript Level 2 (Color) DISK sasprt.ps ;