Midrange News for the IBM i Community


Posted by: Paulster
Freelancer/Consultant
PvD Consultancy AB
Sweden and The Netherlands
Print invoice from physical file with CTLCHAR(*PRTCTL)
has no ratings.
Published: 19 Oct 2011
Revised: 23 Jan 2013 - 1703 days ago
Last viewed on: 21 Sep 2017 (4109 views) 

Using IBM i? Need to create Excel, CSV, HTML, JSON, PDF, SPOOL reports? Learn more about the fastest and least expensive tool for the job: SQL iQuery.

Print invoice from physical file with CTLCHAR(*PRTCTL) Published by: Paulster on 19 Oct 2011 view comments(2)

Return to midrangenews.com home page.
Sort Ascend | Descend

COMMENTS

(Sign in to Post a Comment)
Posted by: bobcozzi
Site Admin ****
Chicagoland
Comment on: Print invoice from physical file with CTLCHAR(*PRTCTL)
Posted: 5 years 11 months 5 days 11 hours 46 minutes ago

Press help on the CPYSPLF command and read the layout for *PRTCTL. Most options can be easily reproduced with an RPG pgm or a simple CPYF command. 

Posted by: DaleB
Premium member *
Reading, PA
Comment on: Print invoice from physical file with CTLCHAR(*PRTCTL)
Posted: 5 years 11 months 5 days 11 hours 19 minutes ago

Next time ask them to CPYSPLF ... CTLCHAR(*FCFC). You then do

OVRPRTF QPRINT ... CTLCHAR(*FCFC)
CPYF file QPRINT
DLTOVR QPRINT

Unfortunately there is no OVRPRTF CTLCHAR(*PRTCTL).

Any non-externally described printer file will work. If you do this regularly, you might want to CRTPRTF with appropriate PAGESIZE() and so forth, to save yourself typing (and remembering) all of the keywords from your OVRPRTF.