|
Welcome (imho) a more organized way of life, and more flexible. But remember, it is just my opinion, not a way of life. As for what you are asking, you are correct, you cannot do that.... External print files require their own field definitions, and arrays, tables, multi occur data structures and such are not eligible to be placed there. Think of the printer file as a physical file, and it makes more sense (at least for this part) So with that said - here is an idea to get around it... Create a field on your dds-prtf file that is say 192 bytes long/ alpha - now to fill in the field, you could use eval/%trim/%substr/%editW/%editC to place the numeric fields in this one large alpha field. I have found the DDS reference sufficient for most of my needs, however the better tools will become more clear with reading the AFP guides/redbook for printing, and the sorcerers guide to rpg. If you have trouble finding these pdf books, I could send you off-line a copy of which ones I have downloaded. HTH Mark A. Manske Sr. Project Lead Core-Mark International Minneapolis Division -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Janell Haskins Sent: Tuesday, October 07, 2003 4:00 PM To: rpg400-l@xxxxxxxxxxxx Subject: Printer File Help I'm trying to teach myself how to use externally defined printer files. I have two questions for the list. First, how do you (or can you) refer to an array element in printer file DDS? My current program uses an array to track monthly sales and I need to print out the value for each month (i.e. the individual array elements). Second, can you recommend a good reference(s) for creating printer files? I've been working with IBM's DDS Reference, but it couldn't help me in this situation. Thanks! Janell Haskins Programmer/Analyst Knit-Rite, Inc. Kansas City, KS _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
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.