&
TWEFOURMUNORED —SUBSCRRE MEANT CONTHBUTORS ABOUTUS. CONTACT
THE FOUR HUNDRED
Power Sjotems AN Insight
OVERCOME THE PAGE CONTROL LIMITATIONS OF ISERIES ACCESS PRINTER
EMULATION SESSIONS:
‘ver the years, Series Access virtual printer emulation sessions have been used to sucessfully
print variety of spool fle reports fom System {and AS/400 systems toa local PC printer
Regardless of the reports page attributes (page orientation, line per inch, characters per inc,
‘number of columns, et), the printer emulator wil often succesfully and automatically correc
‘he output and automatically adjust the spool file's page settings o print successfully toa local
printer However, in other cases it seems like takes quite abit of tinkering to get various spool
files o print coretly to aloal printer.
‘Specifically, here are two common scenarios {encounter
1. After upgrading iSeries Acces toa new level. the printer emulator no longer automatically
aaj the printer ourpt tit nicely on the PC printers page ast once di This hasbeen
especlly tue afer custome has upgraded ta Series Acces VSR3 where it seems the
‘Volume, Number 17 May, 2007
‘THISISSUE SPONSORED Ev:
Hp/sysems
ison Solons
‘WorksRigh Software
TABLE OF CONTENTS
Monitor for Specific Messages in RPG
‘Overcome the Page Contol Limitations of
Sere Aces Printer Emulation Sesons
‘Admin. Ader Dealing with Critical Storagesoftware has lost some ability t0 “auto fi" spool les toa PC printer. assuring this is
because IBM was in losing fight to make the “auto-ft” capability to work with every kind
‘of spool file and every kind of printer.
2. The emulator as been set to force cersin page characteristics suchas only printing portrait
reports with 210 CP! font. For example, [spent about 30 minutes helping a customer
configure an emulation session to print a specific software application’ spoo! ein
portrait After lots of wasted time and paper we finally came up with a sucessful
combination of settings to get everything on the page although in the end the font the
‘raulatar chose sil looked somewhat strange) Worse, thi specific printer erlator session
‘was basiealy locked ito printing single type of report with specific page attbutes!
Do these scenarios sound famille? And what abou those times when you nally get printer
session to work but don't get god backup of the sessions dentin?! Attempting to
‘reconfigure a session that once worked is often a frustrating exercise. (Over the years, Ive
terpted io help many customers re-create printer session definitions that were lost)
‘When working with aPC laser printer, in many cass I believe the answer to thes printer
emulator lemmas are:
1 ‘Stop relying onthe printer emulator to correctly “auto ft" the page setup
2. Stop forcing the printer emulatorto print eports with one specific set of page aebutes
fe emulator doesnt have to gues the page forma, then we need no tinkering with the page
efinition-in most cases the default emulator characteristics will work so we don't need to
‘worry about hacking up the emulation sessions definition or documenting an obscure
combination of settings Further, we don' need to loca printer emulator into printing
“tandscape" onl or“portrai” only printing as often occurs.
‘The answer to removing the guess works to correctly define page atributs on the spool le
ftself so the emulator knows exactly how to format the page. A spool ile gets it atributes from
the print file (or roma printer file override) so the printer file definition itself s where we
need to focus our attention.
‘Toillustrate the proposed solution, consider one common problem scenario:
1 Arepor's printer leis defined with the default 182 character width
2 Only 80 characters or less are actualy used inthe princer output so the assumption is that
‘the report should print portrait3. However, since the emulator sees the need to print 132 characters wide it rotates the page to
landscape.
Im order to fix this problem, the printer file should be defined with the following.
characteristics:
PAGESIZE(G6 48) CX(20) L9I(6) PAGRTT(O)
‘The PAGESIZE parameter defines the page size a 6 ines per page and 80 characters across.
‘The PAGRTT parameter defines the page rotation in 90 degree increments. The default page
rotations ‘AUTO which leaves some guesswork to the printer emulator a to how to best
format the output. A page rotation of0 wil force «portrait print. A rotation of 90 wil force
Jandscape orientation. The CPL and LP setings define the characters per inch and lines per
{Inch 10 CPLis the default 6 LPs als a default. For It-inch length paper, 6 LP wil ive us the