|
ok, but what does that mean? What is different now that the word qualified is added? --------------------------------------------------------- Booth Martin http://www.MartinVT.com Booth@xxxxxxxxxxxx --------------------------------------------------------- -------Original Message------- From: RPG programming on the AS400 / iSeries Date: Friday, September 12, 2003 10:42:29 To: RPG programming on the AS400 / iSeries Subject: Re: User space, outfile or workfile On Fri, 12 Sep 2003, Peter Colpaert wrote: > > "an array of qualified datastructures". It's probably due to it being the > end of the week, but I have absolutely no idea what you're talking about. > > Care to give an example and explain how to use it? > Okay, here's some sample code: D MAX_FIELDS c 256 D fld ds qualified D DIM(MAX_FIELDS) D name 10A D type 1A D recpos 10I 0 D size 10I 0 D digits 10I 0 D decpos 10I 0 D x s 10I 0 c for x = 1 to MAX_FIELDS c eval fld(x).name = *blanks c eval fld(x).type = *blanks c eval fld(x).recpos = 0 c eval fld(x).size = 0 c eval fld(x).digits = 0 c eval fld(x).decpos = 0 c endfor Obviously, you'd populate it from the data in the user space, and only loop through the number of fields in the file... but I'm too lazy to create an example that actually uses QUSLFLD... hopefully this example explains it well enough. _______________________________________________ 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.