|
Douglas, I've seen three ways to use a work file: 1) CRTDUPOBJ (or CPYF) the file into QTEMP from some other master copy library. 2) CRTPF into QTEMP using DDS stored in some master source library. 3) Use a multiple member work file NOT in QTEMP. Use the job number of the job preceded by some character (usually M) as the member name. ADDPFM (member might already exist for a reused job number so allow for this condition), CLRPFM (job numbers get reused so make sure you clear the member), OVRDBF, RMVM in your process to use that work member. ADDPFM/RMVM is a lot faster than CRTDUPOBJ or CRTPF but, if you're not careful with your OVRDBF, the process could use the wrong member on the file. I've also seen shops that don't do RMVM so you have the work data available for analysis. Occasionally you have to go in and remove members to clean up the file. The cleanup occurs with either a RMVM MBR(*ALL) or a home grown utility to remove members that have aged past a number of days. I prefer 3) when the shop will allow it. Paul -- Paul Morgan Senior Programmer Analyst - Retail J. Jill Group 100 Birch Pond Drive, PO Box 2009 Tilton, NH 03276-2009 Phone: (603) 266-2117 Fax: (603) 266-2333 Douglas wrote > 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-2025 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.