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




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.





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.