background image

dc05cc0371 

22 

 

 

so the line looks like this: 

 

             
Remove the hex data for the esc&l2A letter request. 

 

Change to: DATA=

’ ‘X. /* esc&l02A */ 

 
Leaving the comment between the /* and */ helps identify the page size as letter for future reference if other 
changes are made to the source file. 

  

Workflow for Printing EBCDIC SCS and AFPDS Spool Files on Network-Attached ASCII Printer 

The Host Print Transform (HPT) is the IBM program that performs the conversion from EBCDIC spool files with 
SCS or AFPDS formatting, to PCL formatting and ASCII text. The HPT references the WSCST for the specific 
PCL commands to use for the conversion. The WSCST is Work Station Customization Sequence Table. The 
WSCST is constructed using Keywords and the Hex sequences to be used. Because the AS400 is an EBCDIC 
machine, and the PCL sequences are in ASCII, the sequence characters are specified in HEX nibble format.  As 
an example, a PCL reset command is ESC E. The ASCII escape characters is 1B in hex. The uppercase E is hex 
45. In a WSCST this would be 1B 45.  At print time, the HPT will send that to the printer and it will execute the   
RESET command. 
 
The majority of the PCL commands are used 

“as is” and do not need any adjustment. There are a few that need 

to be adjusted for each device supported. The mapping of the DRAWER to TRAY calls is an example. The 
XTOOLS library contains modified WSCSTs for most Xerox printer models. The majority of output from the 
AS400 is reports and simple text pages. These were printed using line printers in the past. So, typically there are 
not many different typefaces required.  Courier fonts are the most common. Fonts are referenced using the 
acronym FGID or GFID. (Font Global ID or Global Font ID.)  The actual printer font used is defined using a 
keyword and the GFID. This definition can be modified to utilize any font that is present in the printer. The PCL 
sequence to select a specific font is contained in the keyword FNTSTR in the WSCST.  
 
As an example, Global Font ID 204 is a 13.3 pitch fixed space font. It is used in printing a spool file that will not fit 
on a Portrait Letter-sized media. The AS400 will rotate the page to Landscape and use the 13.3 pitch font to 
squeeze the text to 11 inches.  
 
The following line numbers refer to those in member XRXLVX in file QTXTSRC of library XTOOLS0923. It is 
recommended that STRPDM or SEU be used to edit the member. It is suggested that a copy of the original 
member be made with a different name.  The edits can be accomplished using the standard SEU editing 
commands. 
 
The tags at line 110-115 specify that GFID 204 is to be used when rotating a spool file that has 10 pitch CPI 
specified.  The tags at lines 381-388 specify the PCL sequence that is sent to the printer to select the desired 
font.  Line 384 is the hex equivalent of the ASCII characters to be sent.  Because the AS400 is natively an 
EBCDIC machine, the ASCII must be in hex to coexist.  At print time, the Host Print Transform will combine every 
two hex characters to an ASCII character.  As an example, in the member XRXLVX at line 384, the first 4 
characters are 1 B  2 and 8. When combined they are actually the ASCII ESCAPE and (.  So, 1B28 becomes 
ESC(, the opening characters for the font selection sequence.  The last 10 hex characters are 34 30 39 39 54.  
When combined they are 4099T, the ending characters of the font selection sequence.  Line 385 is the ASCII 
equivalent of the hex sequence.  
 
The sequence 4099T selects the Courier Typeface.  To change that to LetterGothic, change it to 4102T.  The hex 
equivalent of 4102T is 34 31 30 32 54.  W

e can either change the current characters in line 384, or “comment 

out” lines 384 and 385 and enter new ones.  To change the existing line 384 we would go to the end of the 
sequence.  The 54 at position 9 and 10 needs to stay as is, and the 34 at position 1 and 2 (of the last 10 
positions) needs to stay as is.  The 30 needs to change to 31, the 39 needs to change to 30 and the second 39 
needs to change to 32. So, the existing 3430393954 would be 3431303254. The position numbering is exclusive 
of the (FNTSTR = ‘) in the beginning and the (‘X) at the end. 
 
To “comment out” a line, the first two characters have to be (/*), and the last 2 have to be (*/). Anything in 

Summary of Contents for AS/400

Page 1: ...AS 400 Power Systems Workstation Customization Object Installation and Setup Guide A Possible Alternative for IPDS Printing Using Standard Xerox Office Products dc05cc0371 June 16 2021 XTOOLS1026...

Page 2: ...TATEMENT XEROX The Document Company the digital X and all Xerox product names are trademarks of XEROX CORPORATION Other trademarks belong to their respective owners Copyright XEROX CORPORATION 2021 Al...

Page 3: ...a Device Description or a Remote Print Queue 7 Testing the Setup 8 Using the WSCO 9 Mapping Paper Trays from AS 400 to PCL 9 Changes in this release 15 Appendix 16 1 Xerox Supplied Command Definition...

Page 4: ...ce This document targets system administrators familiar with the AS 400 environment A system administrator should plan to install the WSCO without requiring assistance from Xerox field personnel The f...

Page 5: ...fonts in an AFPDS spool file by the DDS keyword FONT or by using the default GFIDs indicated by the character per inch CPI value in the printer file The FONT keyword also supports a POINTSIZE paramete...

Page 6: ...ommand line and press the Prompt key F4 then place the cursor on a parameter and press Help F1 The process to create a WSCO requires that the source from the XTOOLSxxxx library is compiled for your AS...

Page 7: ...e 111 111 1 100 WorkStation Custom Object The WSCST that was created when the user defined WSCO was compiled Press F4 to see the list Library Name The name of the library where the WSCST resides Use t...

Page 8: ...A5 B4 and B5 For this to work with AFPDS spools the page size of the spool must match the queue s Media Size otherwise the spool s page size will override the Media Size Remote Location The IP address...

Page 9: ...he WCP model VersaLink and AltaLink products have standardized PCL5 tray parameters Most models now include options to add additional media trays In order to provide maximum flexibility the AS 400 Wor...

Page 10: ...H Tray 4 l8H Tray 5 l21H Tray 6 l22H MPT l4H CQ8860 70 80 XRX88XX Tray 2 l1H MPT l2H Tray 2 l1H Tray 3 l5H Tray 4 l8H Tray 5 l21H Tray 6 l22H MPT l4H CQ8700 XRXCQ8700 Tray 2 l1H MPT l2H Tray 2 l1H Tra...

Page 11: ...MPT l4H PH3610 WC3615 55 XRX36XX Auto l7H MPT l2H Tray 1 l4H Tray 2 l1H Tray 3 l5H Tray 4 l8H Tray 5 Bypass l2H Auto l7H PH3635MFP XRX3635MFP Auto l1H MPT l2H Tray 1 l1H Tray 2 l4H Tray 1 l1H MPT l2H...

Page 12: ...H PH6300 50 60 NS XRX63XX Tray 2 l1H MPT l2H Tray 2 l1H Tray 3 l5H Tray 4 l8H Tray 5 l21H Tray 6 l22H Tray 1 MPT l4H PH6500 6505MFP XRX65XX Tray 1 l4H MPT l2H Tray 1 l4H Tray 2 l1H Tray 3 l5H Tray 4 l...

Page 13: ...XVLX Auto l7H MPT l2H Tray 1 l4H Tray 2 l1H Bypass l2H VLB405 XRXVLX Auto l7H MPT l2H Tray 1 l4H Tray 2 l1H Bypass l2H VLB6xx XRXVLX Auto l7H MPT l2H Tray 1 l4H Tray 2 l1H Tray 3 l5H Tray 4 l8H Tray 5...

Page 14: ...XWC52XX Tray 1 l1H MPT l2H Tray 1 l4H Tray 2 l1H Tray 3 l5H Tray 4 l8H Tray 5 l2H Tray 6 l21H WC53xx XRXWC53XX Auto l20H MPT l2H Tray 1 l4H Tray 2 l1H Tray 3 l5H Tray 4 l8H Tray 5 l2H Tray 6 l21H WC56...

Page 15: ...l1H tray 3 l5H tray 4 l8H tray 5 l21H tray 6 l22H Tray 7 l23H Inserter Tray l32H Auto l7H WC79xx XRXWC79XX Auto l7H MPT l33H tray 1 l4H tray 2 l1H tray 3 l5H tray 4 l8H tray 5 l21H tray 6 l22H Tray 7...

Page 16: ...This command enables printing using the LPR protocol 3 CRTXWSC This command creates the Work Station Customization Tables used in the two previous commands The host print transform uses these tables...

Page 17: ...e perhaps moving some to a new queue might be better Move spool files with the CHGSPLFA command If the spool files are moved to a different queue they will have to be moved back 3 Save the output queu...

Page 18: ...brary This is the same source file that contains the source for the Xerox WorkStation Customization Tables One way to create the source files is to use strpdm and copy the Prepend and Postpend example...

Page 19: ...nguage PJL command If it is desired to transmit commands that require being inside the first RESET and the last UEL then the best solution is to comment out the Init and RESET keywords in the WSCST an...

Page 20: ...or Postpend file To recall the pre and post pend files enter the RTVPREPOST and press F4 at the command line Enter the two member names to retrieve Make the changes that you want then repost using the...

Page 21: ...uct The solution is to leave the Paper Size Drawer 1 and 2 set to LETTER and remove the PCL command for letter on the DATA line for the WSCO in the QTXTSRC file provided Change DATA 1B266C303241 X esc...

Page 22: ...space font It is used in printing a spool file that will not fit on a Portrait Letter sized media The AS400 will rotate the page to Landscape and use the 13 3 pitch font to squeeze the text to 11 inc...

Page 23: ...r the IBM supplied CRTWSCST command or the Xerox supplied CRTXWSC from the XTOOLS library Once the WSCST is successfully created you must end the writer of the printer you want to use and then restart...

Reviews: