Return codes 0 to 14

Table 1 shows the hexadecimal return codes X'00' through X'14' for specific printers.

Table 1. SETPRT Return Codes 00 to 14
3800 or 3900 Code Other than FCB (Byte 1) FCB Code (Byte 2) UCS Code (Byte 3) Meaning
00 00 00 Successful completion.
00 00 04 The operator canceled the UCS request for one of the following reasons:
  • The UCS image could not be found in SYS1.IMAGELIB.
  • The requested train or band was not available.
00 04 00 For not 3800 or 3900 printers, the operator canceled the FCB load operation for one of the following reasons:
  • The form could not be aligned to match the buffer.
  • The FCB module could not be found in SYS1.IMAGELIB or your DCB exit list.

For a 3800 or 3900, the specified FCB module could not be found in SYS1.IMAGELIB, a user library, or the DCB exit list, and SETPRT processing was terminated.

04 00 00 The 3800 or 3900 SETPRT processing was suspended for one of the following reasons:
  • A character arrangement table module could not be found in SYS1.IMAGELIB or a user library.
  • A copy modification module could not be found in SYS1.IMAGELIB or a user library.
  • A graphic character modification module (required by a character arrangement table module) could not be found in SYS1.IMAGELIB or a user library.
  • A library character set module could not be found in SYS1.IMAGELIB or a user library.

Register 0 contains a reason code identifying which of the above conditions occurred. For an explanation, see Table 1.

00 00 08 A permanent I/O error was detected when the BLDL macro was issued to locate a UCS image or image table in SYS1.IMAGELIB.
00 08 00 A permanent I/O error was detected when the BLDL macro was issued to locate an FCB module in SYS1.IMAGELIB or a user library.
08 00 00 A permanent I/O error was detected when the BLDL macro was issued to locate one of the following modules in SYS1.IMAGELIB or a user library.
  • A character arrangement table module.
  • A copy modification module.
  • A graphic character modification module.
  • A library character set module.

Register 0 contains a reason code identifying which of the above conditions occurred. For an explanation, see Table 1.

00 00 0C A permanent I/O error was detected while loading the printer's UCS buffer, or displaying a message on the 4248 printer.
00 0C 00 A permanent I/O error was detected during forms positioning or while loading the printer's FCB buffer.

Register 0 contains a reason code identifying which of the above conditions occurred. For an explanation, see Table 1.

0C 00 00 A permanent I/O error was detected while loading one of the following:
  • Character arrangement table.
  • Copy modification record.
  • Starting copy number.
  • Graphic character modification record.
  • Forms overlay sequence control record (copy counts and flash counts).
  • Writable character generation module (WCGM).
  • Library character set.

Register 0 contains a reason code identifying which of the above conditions occurred. For an explanation, see Table 1.

00 00 10 A permanent I/O error was detected during UCS verification display or while reading the UCS buffer.
00 10 00 A permanent I/O error was detected during FCB verification display.
00 00 14 The operator canceled the UCS request because an improper character set image was displayed for visual verification.
00 14 00 The operator canceled the FCB request because an improper forms control image was displayed for visual verification.

The illustration below shows how the 4 bytes of register 15 are used for all printers.

Unused (bits 0-23) and general code (bits 24-31)