× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Okay, so you're looking for a way to make a report recognize fields added to
a physical file and include them using an externally described printer file?
I don't have an answer to the externally described printer file issue,
unless you want to get into programatically modifying DDS source.

The easiest way to accomplish dynamically building the report might be to
use DSPFFD <filename> *OUTFILE and then have the RPG program build an array
or multi-occurrence data structure of the fields, column headings, lengths,
and attributes.  The program can then populate a unformatted field of 198
characters with the column headings, ensuring the width of the column
heading matches the total width of the field.  From there, the same field
can be used in conjunction with EVAL and %EDITC to build a formatted report
line by using the attributes of the field (character, packed, signed, zoned)
to determine whether the field should be edited.

For this to work, of course, you either have to have the file to which
fields are being added compiled with LVLCHK(*NO) or ensure the program is
recompiled each time fields are added.

Hope that helps.

Donald R. Fisher, III
Project Manager
The Roomstore Furniture Company
(804) 784-7600 extension 2124
DFisher@roomstoreeast.com

<clip>
Now there are reports based on this file which will use some fixed fields
and some added fields. We are using RLU for designing reports.

In PF we can add more fields but in RLU since you design the layout then at
the runtime how can we amend the RLU design.
<clip>


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.