Setting up AS/400 for A4 paper size

How do I setup the AS/400 for A4 paper size?

If you have not changed the page size of the PRTF, it is still 132 66. The Host Print Transform looks at this value and translates it into the escape sequence requesting that the paper at the printer be 13.2"x 11." Paper. It is not possible with some printers so they are not including in the transform - normally you would default to PPRSRC1 parameter; but, if you are using RMTOUTQ there is no DEVD. It must send something so it requests LETTER rather than A4.

To fix you can change the PRTF so that it has a PAGESIZE that reflects A4 or you can edit the transform. We suggest you look at the Rebook IV if you have it. The basic principle is to RTVWSCST *TRANSFORM *HP4 <specify a PF to retrieve into>. Then use SEU to edit this file and either create another PAGESIZE tag for 13.2" x 11" or change the one for letter.

To change the entry for letter:..

  • PAGSIZE
  • PAGWTH=12240
  • PAGLEN=15840 (these are the size of the page in 1/1440ths of an inch)
  • Data='1B266C303241'X

Change this to

  • Data='1B266C323641'X

What you are doing is sending the escape sequence for A4 rather than letter sized paper. Save this and then CRTWSCST. Add this into the RMTOUTQ under WSCST.