|
Rick, If you could send me a real small & simple example of how to create and use a user index, I'd appreciate it. Off-list or on-list, which ever you choose. Thanks, Frank <Rick.Chevalier@xxxxxxxxxxxxxxx>@midrange.com on 05/17/2005 11:17:50 AM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx To: <rpg400-l@xxxxxxxxxxxx> cc: Subject: RE: user index (was: work files in qtemp) I'm sure I can dig some up. I probably ought to send them off-line if that's ok because I can't attach them and I probably don't want to post that much code into an e-mail. Let me know if that's ok. You can also find a lot of information in the archives. This topic has been discuss a few times in the past. The documentation can be found at http://publib.boulder.ibm.com/infocenter/iseries/v5r3/ic2924/index.htm. Rick -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of fkany@xxxxxxxxxxxxxxxxxx Sent: Tuesday, May 17, 2005 10:56 AM To: CN=RPG programming on the AS400/O=iSeries Subject: user index (was: work files in qtemp) What's a user index? Do you have examples of how to create and use a user index? Frank <Rick.Chevalier@xxxxxxxxxxxxxxx>@midrange.com on 05/17/2005 10:50:06 AM Please respond to RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx> Sent by: rpg400-l-bounces@xxxxxxxxxxxx To: <rpg400-l@xxxxxxxxxxxx> cc: Subject: RE: work files in qtemp Douglas, Files, or any object for that matter, placed into QTEMP go away when the job ends. The QTEMP library is unique for each job and only exists while a given job is running. Probably the most common way to get objects into QTEMP is to use CRTDUPOBJ although there are several others. I would like to suggest the use of a user index for your purposes. I rarely use work files anymore having replaced them with user indexes. They can be created on the fly, the format is flexible, the data is sorted as it is added much like a logical file, and they perform well. According to IBM documentation they are faster than data files. HTH, Rick -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]On Behalf Of Douglas W. Palme Sent: Tuesday, May 17, 2005 10:42 AM To: RPG Group Subject: work files in qtemp I have been working on a program that will reuqire me to use some sort of temporary hold file, a friend suggested that I use a work file in qtemp for the processing of the data...however, I have never used work files before, let alone in qtemp. Should I just create the file in my library and then copy it to the qtemp directory and then process the data deleting the file once I am done? Any other suggestions would be appreciated. Douglas
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.