!GETPU()

!GETPU()

Top  Previous  Next

 

The !GETPU() subroutine gets the characteristics of a print unit.

 

 

Format

 

CALL !GETPU(key, unit, value, status)

 

where

 

keyidentifies the parameter to retrieved. This is as for the GETPU() function.

 

unitevaluates to the print unit number.

 

valueis the variable to receive the given parameter.

 

statusis the return status value. Zero if the action is successful, a non-zero error code if the action fails.

 

 

The !GETPU() subroutine retrieves the print unit characteristic specified by key, storing it in value. It is closely related to the GETPU() function.

 

 

Example

 

CALL !GETPU(PU$MODE, 3, MODE, STATUS)

 

The above statement gets the mode of print unit 3, storing it in MODE.