PTR Function

Generates a printer control string that is independent of any type of printer.

Syntax

PTR(function-class,function-subclass{,param}...)

Syntax Elements

function-class is a numeric that specifies the class of a printer independent function.

function-subclass
is a numeric value that specifies the subclass of a printer independent function.

param one or more parameters required by a particular function class and subclass.

Operation

The printer Despooler interprets the string according to the printer independence item-id that has been assigned via the SPM (Spooler Maintenance) program on the SYSPROG account. Thus, one program may output bold, underlined text to a print job, which could be printed correctly on any printer:

Refer to Printer Independent Functions or, for full details, the Printer Definition Maintenance manual.

Example

PTR(4,1,5,20)

This example invokes the Set Horizontal Tabs function, which is class 4, subclass 1. This example includes two parameters, 5 and 20.