AS400 Mid Range/as400 querry

Advertisement


Question
How to create a printer file for RPG program?????
Plz also mention the steps to create printer file..
Thanks in advance....

Answer
Unfortunately, the subject of creating printer files is more complex than I can fully explain in an e-mail.

Essentially, you design formats using DDS that define what fields to print, where on the line to print them, and whether to space before or after printing the line. Each format is assigned a name. You compile the printer file using the CRTPRTF command, then use it as an output file in your RPG program. Use the WRITE command in your RPG program, followed by a format name, to print a line.

- Laird

AS400 Mid Range

All Answers


Answers by Expert:


Ask Experts

Volunteer


Concise Systems/Laird Scranton

Expertise

General AS/400, RPG/400, SDA and CL programming questions. AS/400 performance tuning.

Experience


Past/Present clients
CB Sportswear
Coca-Cola of New York
Encore Paper Company
Golub Corporation
HBO Home Video
Imperial Pools
Kaiser Permanente of NE New York
Mallinckrodt Medical
Marigold Foods
Manpower & Associates
National Datacomputers
New York State Easter Seals Society
New York State Food Merchants Association
Pepsi-Cola Allied Bottlers
Petricca Construction
Taconic Telephone Corporation
TOMRA Recycling
Unistress Corporation

©2012 About.com, a part of The New York Times Company. All rights reserved.