PSF for z/OS: User's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


Using carriage control characters in line data records

PSF for z/OS: User's Guide
S550-0435-04

Using carriage control characters in line data records

CC characters are used in traditional line data to control writing, spacing, and skipping operations as the data is being formatted. The FCB is used to map CC characters to the physical actions that line printers perform to format print data vertically. For page printers, the page definition replaces the function of the FCB. If you are using a page definition with a page printer to replace an FCB, the page definition must specify the same number of lines per inch and have the same actions defined for CC characters as the FCB used with the line printer.

You can use the Page Printer Formatting Aid (PPFA) product to create page definitions that specify exactly the same skipping and spacing instructions as the FCBs used with existing traditional line data applications.

Table 4 lists the hexadecimal CC characters you can use. The decimal representations of the ANSI codes are in parentheses.

Table 4. Carriage control characters
ActionMachine Code Control Characters Action After PrintingMachine Code Control Characters  Action Only (Immediate)ANSI Control Characters  Action Before Printing
Print (no space)01-4E (+)
Space 1 line090B40 ( )
Space 2 lines1113F0 (0)
Space 3 lines191B60 (-)
Skip to Channel 1898BF1 (1)
Skip to Channel 29193F2 (2)
Skip to Channel 3999BF3 (3)
Skip to Channel 4A1A3F4 (4)
Skip to Channel 5A9ABF5 (5)
Skip to Channel 6B1B3F6 (6)
Skip to Channel 7B9BBF7 (7)
Skip to Channel 8C1C3F8 (8)
Skip to Channel 9C9CBF9 (9)
Skip to Channel 10D1D3C1 (A)
Skip to Channel 11D9DBC2 (B)
Skip to Channel 12E1E3C3 (C)
Note:
PSF ignores these hexadecimal machine CC characters: 02 through 07, 0A, 12, 23, 43, 63, 6B, 73, 7B, EB, F3, and FB. PSF prints data lines containing these characters in single-spacing mode.

If your application creates line data records containing CC characters that skip to a channel, the page definition used to print the application output must contain instructions for processing those channel codes. If the skipping or spacing actions you specified in a page definition move the print position past the last line of the current page, PSF starts a new page at the first print position indicated by the page format.

Note:
PSF does not carry skipping or spacing over to the new page.

An alternative to using CC characters or channel codes in line data records is to define data placement entirely within the page definition by using line count or field formatting.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014