Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I know I should know this-it's just so basic 1

Status
Not open for further replies.

LUEBBKEVIN

Programmer
Apr 30, 2002
35
US
Ok, it's tough getting old. I need to create a report using just RPGIV. I've got the data in the file and have created a print file for the report.
My question......
Do I just load the print file from the data file? The data file is keyed to two levels where I need breaks in the report....for example
key1 State
key2 employee id

 
if the field names are different,,, yes you do. I can sympathize with the old comment... Sometimes I feel like I have forgot more than I knew.
 
I can name the print file fields and my output fields the same so I don't have to mess with moving the data back and forth. The report breaks are what I'm struggling with at the moment.....it must be in one of those areas where I fried the brain cells over the holidays.......
 
ok,,, asking silly questions now,,,,is it a PF or LF, and the data is arranged according to the level breaks,,, so that the major is L2,,, and the minor is L1. So what's going on???
 
The data file is a physical. the main break would be state in this example and the secondary break would be employee. so state is the first key in the physical.

Actually, I'm thinking it's probably easier just to run through the file and just shoot it to QPRINT rather than tax my ever-failing memory on a monday morning.
all I have to do is read the data file, retain the state and employee id off for comparison....and when one changes print off the appropriate headers.
 
It is crazy what your mind does or doesn't do. I remember one instance where I worked for 3 hhours trying to get a chain to work,,, and I had neglected to setup the f spec correctly, made me feel like a fool,, when I finally saw it. You can alwys go back and use the rpp cycle depending on how comfortable you are with it. good luck, and hope it works out.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top