|
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 Privileged and Confidential. This e-mail, and any attachments there to, is intended only for use by the addressee(s) named herein and may contain privileged or confidential information. If you have received this e-mail in error, please notify me immediately by a return e-mail and delete this e-mail. You are hereby notified that any dissemination, distribution or copying of this e-mail and/or any attachments thereto, is strictly prohibited. -- 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. -- 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.