SETPRT return codes

After the SETPRT macro is executed, a return code is placed in register 15, and control is returned to the instruction following the SETPRT macro. The illustration below shows how the 4 bytes of register 15 are used for a specific printer.

Unused (bits 0-7), 3800 code other than FCB (bits 8-15), FCB code (bits 16-23) and UCS code (bits 24-31)

Return codes X'0' through X'24' apply to all printers.

Return codes X'28' through X'4C' apply to the 3800 or 3900 printer only. There is one exception; return code X'48' also applies to the IBM® 3262 Model 5 and the IBM 4248 printer.

Return code X'50' applies to SYSOUT data sets.