× 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.



Mark, 
  I agree with you in that in my opinion also, this is a much more organized
way of life.
  I disagree with you, however, when you say you cannot do that.  This can
be done by double-defining the array.  In other words, either define the
array in a data structure and overlay the elements with the output fields,
or create a data structure using the output fields and base that data
structure on the beginning of the array.
  Having used both techniques, I know that either one will work, and which
one to use is simply a matter of style.
Duane

> -----Original Message-----
> From: Mark A. Manske [SMTP:mmanske@xxxxxxxxxxxxxxxxxx]
> Sent: Tuesday, October 07, 2003 4:20 PM
> To:   'RPG programming on the AS400 / iSeries'
> Subject:      RE: Printer File Help
> 
> 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.
>  << File: ATT39360.txt >> 

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.