If you find that the supplied buffer images do not meet your needs,
you can alter a buffer image or create a new buffer image. Be careful not to violate the VM/370 coding ccnvGnticns if you add a buff€r image; buffer images must not cross page boundaries.
Adding New Print Buffer Images In order to add a new print buffer image to VM/370, you must: 1. Provide a buffer image name and 12 byte header for the buffer load.
2. Provide the exact image of the print chain.
3. Provide a means to print the buffer image if VER is specified on
the LOADBUF command.
4. Reload the changed CP modules.
Macros are available that make the process of adding buffer images
relatively easy. UCS BUFFER IMAGES The UCS buffer contains up to 240 characters and supports the 1403 printer. To add a new UCS buffer image, first code the UCS macro. This
creates a 12-byte header for the buffer load that is used by the CP module DMKCSO. The format of the UCS macro is:
, I ucs I ucsname I L- ___________________________________________________________________________ ucsname is a 1-to 4-character name that is assigned to the buffer
Next, supply the exact print image. The print image is supplied by
coding DCs in hexadecimal or character format. The print image may
consist of several DCs, the total length of the print image cannot
exceed 240 characters. Part 2. Control Program (CP) 217
The ucsccw .acro must immediately follow the print image. This macro
creates a CCW string to print the buffer lead image when VER is
specified by the operator on the LOADBUF command. The format of the UCSCCW macro is:
r I I ucsccw I ucsname[, (print 1, print2, ••• , print 12) ]
ucsname is a 1-to 4-character name that is assigned to the buffer
load by the UCS macro.
( (print1, ••• ,print12) ]
is the line length (or number of characters to be printed by
the corresponding CCW) for the verify operation. Each count
specified must be between 1 and 132 (the length of the print
line on a 1403 printer) and the default line length is 48
characters. Up to 12 print fields may be specified. However,
the total number of characters to be printed may not exceed 240. Finally, insert the macros just coded, UCS and UCSCCW, into the DMKUCS module. This module must be reloaded. DMKUCS is a pageable
module (with no executable code) that is called by DMKCSO. D8KUCS must be on a page boundary and cannot exceed a full page in size. 1: You do not have to specify the line length for verification
of the buffer load. Insert the following code in DMKUCS: UCS EX01 DC 5CL'1234567890A ••• Z1234567890*/' UCSCCW EX01 The buffer image is 5 representations of a 48-character string
containing: The alphabetic characters The numeric digits, twice The special characters: * and / Since the line length for the print verification is not specified on the UCSCCW macro, it defaults to 48 characters per line for 5 lines. l: Insert the following code in DMKUCS: UCS NUMl DC 24CL'1234567890' UCSCCW NUM1, (60,60,60,60) The NUM1 print buffer consists of twenty-four la-character entries.
If, after DMKUCS is reloaded, the command LOADBUF OOE UCS NUMl VER is specified, 4 lines of 60 characters (the 10-character string repeated
6 times) are printed to verify the buffer load).
218 IBM V8/370 System Programmer's Guide
Previous Page Next Page