LISTPTR Command

The LISTPTR command lists information about system printers, such as printer type, form queues assigned to each printer, number of pages to skip between print jobs, the lines to which printers are assigned, and the current status of printers.

Format

LISTPTR [n [–m]] [options]

Parameter(s)

n

Number of the printer.

n-m

Specifies a range of printer numbers.

options

Parentheses are not required.

B

Lists information about all printer control blocks, whether allocated or not.

N

Suppresses automatic paging.

P

Sends the output to the printer.

Description

The LISTPTR command produces a report that looks like this:

The LISTPTR Report

>LISTPTR

 

 

 

 

 

 

PRINTER ASSIGNMENTS

14:36:25

 

 

 

 

 

 

PRINTER TYPE

NUMBER

OUTPUT QUEUES

PAGE SKIP

DEV OR PROCESS #

STATUS

 

 

 

 

 

 

SERIAL

3

3 7 8

1

8

ACTIVE

SERIAL

4

4 7 8

1

70

ACTIVE

SERIAL

5

5

1

63

ACTIVE

SERIAL

6

6

1

53

ACTIVE

SERIAL

7

2

1

13

ACTIVE

 

 

 

 

 

 

>

 

 

 

 

 

The report generated by this command lists the following information:

PRINTER TYPE

All mvBase printers list as serial.

NUMBER

Number of the printer. This number is used by the STARTPTR, STOPPTR, and SP-KILL commands.

OUTPUT QUEUES

Form queues that are currently attached to this printer.

PAGE SKIP

Number of pages to be skipped between each print job.

DEV OR PROCESS #

Either the number of the line (process) to which the printer is attached, or the printer device number.

STATUS

Can be ACTIVE, INACTIVE, STOPPED, or UNALLOCATED.

The LISTPTR report example above lists the status of all currently allocated printers. This report indicates that printers numbered 3 through 7 are attached to processes 8, 70, 63, 53, and 13. Printers 3 and 4 have three forms queues assigned to them. All of the serial printers are currently active.

The next example shows how to list the status of one specified printer:

>LISTPTR 1

 

 

 

 

 

 

PRINTER ASSIGNMENTS

14:37:35

 

 

 

 

 

 

PRINTER TYPE

NUMBER

OUTPUT QUEUES

PAGE SKIP

DEV OR PROCESS #

STATUS

 

 

 

 

 

 

SERIAL

3

3 7 8

1

8

ACTIVE

 

 

 

 

 

 

>

 

 

 

 

 

The next example shows a report, obtained using theB option, that includes all unallocated printer control blocks:

>LISTPTR B

 

 

 

 

 

 

PRINTER ASSIGNMENTS

14:37:29

 

 

 

 

 

 

PRINTER TYPE

NUMBER

OUTPUT QUEUES

PAGE SKIP

DEV OR PROCESS #

STATUS

 

 

 

 

 

 

SERIAL

1

 

 

 

UNALLOCATED

SERIAL

3

3 7 8

1

8

ACTIVE

SERIAL

4

4 7 8

1

70

ACTIVE

SERIAL

5

5

1

63

ACTIVE

SERIAL

6

6

1

53

ACTIVE

SERIAL

7

2

1

13

ACTIVE

SERIAL

8

 

 

 

UNALLOCATED

SERIAL

9

 

 

 

UNALLOCATED

SERIAL

10

 

 

 

UNALLOCATED

SERIAL

11

 

 

 

UNALLOCATED

SERIAL

12

 

 

 

UNALLOCATED

SERIAL

13

 

 

 

UNALLOCATED

SERIAL

14

 

 

 

UNALLOCATED

SERIAL

15

 

 

 

UNALLOCATED

 

 

 

 

 

 

>