280 pts.
 Printer files with width greater that 255
I am trying to create a printer file with PAGESIZE as (66 375) but its giving me error that line greater that 255 .. Please suggest how to accomplish this as i have a requirement in which i need a report with width 375 ... Please suggest

Software/Hardware used:
as400
ASKED: Jan 30, 2012  10:12 PM GMT
UPDATED: March 17, 2012  5:57:17 AM GMT
4,945 pts.
  Help
 Approved Answer - Chosen by Munduuu (Question Asker)

You can create a printer file with a width greater than 255 (378 is the actual limit - see the PAGWIDTH parameter in the STRRLU command). The problem is that you can't have any fields that begin at a position greater than 255.

When I last did it, I created text fields starting before position 255 that extended the remaining width of the printer file. Then I used a combination of %subst(), %editc(), %editw(), and evalr to format the information in the text fields. It's a pain to make changes, but it does work.
ANSWERED:  Jan 31, 2012  4:03 PM (GMT)  by Splat   4,945 pts.

 
Answer Wiki:
Last Wiki Answer Submitted:  Mar 17, 2012  5:57 AM (GMT)  by  TomLiotta   66,990 pts.
Latest Answer Wiki Contributors:  Rebek4love   3,500 pts.
To see other answers submitted to the Answer Wiki View Answer History.
Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _




 

What kind of printer is it designed for? Actually, what are all of the other attributes besides PAGESIZE()?

Tom

 66,990 pts.

 

Actually i am creating a report in which data is of 375 width so need to generate a spool file with this width which will ultimately be stored in some content management system…So i have created the printer file using RAD and when i am compiling the file its giving me error …line greater than 255….please suggest

 280 pts.

 

Forgot to add it a *SCS file

 280 pts.

You can create a printer file with a width greater than 255 (378 is the actual limit - see the PAGWIDTH parameter in the STRRLU command). The problem is that you can’t have any fields that begin at a position greater than 255.

When I last did it, I created text fields starting before position 255 that extended the remaining width of the printer file. Then I used a combination of %subst(), %editc(), %editw(), and evalr to format the information in the text fields. It’s a pain to make changes, but it does work.

 4,945 pts.