Copyright protection claimed includes all
forms and matters of copyrightable material
and information now allowed by statutory or
judicial law or hereinafter granted, including
without limitation, material generated from
the software programs that are displayed
on the screen, such as icons, screen
displays, looks, etc.
Produced in the United States of America.
XEROX®, The Document Company®, the
digital X®, and the identifying product
names and numbers herein are trademarks
of
XEROX CORPORATION.
All non-Xerox brands and product names
are trademarks or registered trademarks of
their respective companies.
Companies, names, and data used in
examples herein are fictitious unless
otherwise noted.
Changes are periodically made to this
document. Changes, technical
inaccuracies, and typographic errors will be
corrected in subsequent editions.
This document was created using Microsoft
Word 2000.
XDPE/400 Technical Bulletin
This technical bulletin documents the procedure used to change the default font, orientation and
spacing on the XDPE generated banner separator for PCL data streams.
This solution consists of two parts, first, customization of the XDPE banner page template with
insertion of PCL commands, and secondly, modification of the work station customization object
called from the Monitor queue to assign the PCL ESC character to a printable character, allowing
the user to send PCL command strings along with the banner data.
Users should take note that the printer control commands placed in the banner separator will
have an effect on how the variable data prints as well. It should also be noted that for the variable
print data, any commands inserted in the banner separator page are easily overridden by the use
of a PCL packet.
Modifying the XDPE banner page template
1. Create a new banner source member by copying the distributed banner source from
library XDPE214, file SAMPLE, member BANXDPEN, giving the copied member a
unique name, for example BANRCUST, or backup your currently customized XDPE
banner source member before making additional modifications.
2. Create a folder on the AS/400, called for example XDPEBANR, to store source member
BANRCUST in PC format using OS/400 command:
CRTFLR FLR(XDPEBANR) TEXT(‘XDPE banner source’)
3. Move member BANRCUST to the newly created PC DOC folder XDPEBANR using
OS/400 command:
4. Use a PC text editor such as UltraEdit to insert the desired PCL commands into the
banner page template. If using Client access or other similar product to access the
AS/400 folder XDPEBANR and document BANRCUST from the PC, then skip to step 5
now, otherwise, FTP may also be used to move the PC doc member BANRCUST to the
PC for editing. When using FTP, ensure a receiving directory exists on the PC, such as
xdpe/bannersrc to store member BANRCUST. The series of FTP commands entered
from a DOS command prompt on the PC are:
a) FTP 999.999.9.999 (IP address of AS/400 where folder XDPEBANR exists)
b) User (enter a valid OS/400 user id)
c) Password (enter the valid OS/400 password)
d) ftp > bin (set representation type to binary image)
e) ftp > get /qdls/xdpebanr/banrcust /xdpe/bannersrc/banrcust
5. It is up to the user to determine which PCL commands they want to insert to modify the
banner page appearance. For example purposes in this document the Font Style, Font
Stroke Weight, Orientation, Vertical Motion Index (VMI) and Horizontal Motion Index
commands will be inserted. Since the PCL ASCII escape character X’1B’ is an
unprintable character, an alternate printable character will need to be used in its place.
Select a character that will not be found in the banner or variable print data. A common
choice is the EBCDIC logical not sign ('¬') character (X’AA’). The commands to be
inserted for this example are as follows:
a) Style - Italiccommand: esc(s1SX’AA28733153’
b) Stroke Weight - Boldcommand: esc(s3B X’AA28733342’
c) Orientation -Landscapecommand: esc&l1O X’AA266C314F’
d) Vertical Motion Index (VMI) -8command: esc&l6CX’AA266C3643’
e) Horizontal Motion Index (HMI) -12command: esc&k12HX’AA266B313248’
Beginning at the first position of member BANRCUST insert the following string of 26
ASCII hex codes:
AA28733153AA28733342AA266C314FAA266C2643AA266B313248
Save the changes and exit out of the text editor.
6. If using Client access or other similar product to access the AS/400 folder XDPEBANR
and document BANRCUST from the PC, then skip to step 7 now, otherwise, FTP may
again be used to move BANRCUST back to folder XDPEBANR on the AS/400. The
series of FTP commands entered from a DOS command prompt on the PC are:
a) FTP 999.999.9.999 (IP address of AS/400 where folder XDPEBANR exists)
b) User (enter a valid OS/400 user id)
c) Password (enter the valid OS/400 password)
d) ftp > bin (set representation type to binary image)
e) ftp > put /xdpe/bannersrc/banrcust /qdls/xdpebanr/banrcust
7. Backup the current member BANNER in physical file XDPEBANNER in library XDPE214
by renaming it, for example BANNERO.
8. Copy member BANRCUST to physical file XDPEBANNER in library
Modifying the XDPE work station customization object to Translate the EBCDIC Logical
Not Sign ('¬') Character to Represent an ASCII Escape Control Character (X'1B')
9. If the monitor queue parameter ‘workstation customizing object (WSCST)’ is set to
*XDPEDFT, then view the table on page 18-19 of the XDPE/400 manual PrintingDocuments with XDPE/400 (9/2001) to determine which work station customization
object to modify based on the printer model specified in the monitor queue parameter
‘printer model (MODEL)’, otherwise if the monitor queue parameter ‘workstation
customizing object (WSCST)’ is specified with a user-created workstation customizing
object, then back-up that source before making additional modifications to it. The default
workstation customization object source members reside in library XDPE214 file
SAMPLE. For example purposes in this document, source member XWSCSTN32 will be
modified.
10. Create a copy of source member XWSCSTN32 giving it a unique name such as
XWSCSTBANR.
11. A Logical Not Sign ('¬') character is code point X'5F' in EBCDIC Code Page
37. So, to translate a Logical Not Sign ('¬') character to an ASCII Escape
control character (X'1B'), the X'5F' position in the table must be changed
from its normal setting of X'AA' (a Logical Not Sign character in ASCII
Code Page 437) to X'1B'. The X’5F’ position has been changed so the correct translation
will occur by using the following EBCASCTBL (EBCDIC to ASCII Mapping Table) and
EBCASCTBLE (EBCDIC to ASCII Mapping Table Entry) tags.
Type (or cut and paste) the following after the :EASCCPINFO tag and before the
:EWSCST tag, which is the last tag in the WSCST source member.
Note: Examples of the various Code Pages, including EBCDIC Code Page 37
(USA/Canada - CECP) and ASCII Code Page 437 (Personal Computer), can be
found in Adobe Acrobat PDF format on the IBM Code Pages web page at the
following URL: