A R RECORD1
A SKIPB(1)
A PAGRTT(90)
A FIELD1 3A 2 01
A R RECORD2
A FIELD2 3A 6 01
A R RECORD3
A FIELD3 3A 5 01
Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.
JohnnyMooch | Jan 17 2008 12:49PM GMT
Thanks for the response. Your answer looks like it came right out of the book!!!
Do you have a working example? I’ve coded things just like the example you gave, and I am not receiving any diagnostic warnings. Yet the rotation keyword declared in the record format is ignored.
Thanks for any help……
Kevleemor | Jan 17 2008 4:52PM GMT
Hey that’s funny… it did come from the book! I coded this example and it worked on my IBM Infoprint 1145 printer
Display File
A******************************************************
A R PRTH011 SKIPB(1)
A SPACEA(001)
A 22'EDI'
A SPACEA(001)
A 30'PURCHASE +
A ORDER'
A*
A R PRTH021 SKIPB(1)
A PAGRTT(90)
A SPACEA(001)
A 8'Product '
A SPACEA(001)
A 71'Delivery '
RPG Program
H/TITLE Page Rotation Test printout
FZZPAGROTP O E PRINTER OFLIND(*IN79)
F INFDS(SRPRT)
D SRPGM ESDS EXTNAME(SRDPGM)
D SRPRT E DS EXTNAME(SRDPRT)
C WRITE PRTH011
C WRITE PRTH021
C WRITE PRTH011
C WRITE PRTH021
C EVAL *INLR = *ON
C RETURN
JohnnyMooch | Jan 18 2008 9:23AM GMT
Thanks Kev,
I failed to mention one detail - I am also working with Overlays!!!!
The example you provided works like a charm. I am able to go from port to land just the way you explained - I now have that working - thanks!
Here’s what’s happening when I introduce the overlays;
Page1
Portrait with Overlay and positionally defined variable data - prints the way I like.
Page2
Landscape without Overlay and the variable data is defined as line - prints the way I like.
BUT……
Page2
Landscape with Overlay and line data - reverts back to default or ignores pagrtt(90) - not what I want….
Any thoughts, suggestions, advice, moral support?
Thanks for any assistance,
John