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



How is the physical file created?  From DDS?  Is there an access path in 
the physical that is actually used in the process that puts data into it? 
If not, then use the access path defined in one of your logicals.
Tis a rare case that is improved by taking the physical and creating 
another physical from it versus just putting a logical over it.  Not that 
it doesn't happen, however.

Oh, there are sometimes that you can create some usable access paths 
without the use of SQL or DDS.  For example:
DSPUSRPRF USRPRF(*ALL) OUTPUT(*OUTFILE) OUTFILE(MYLIB/MYFILE)
CHGPF FILE(MYLIB/MYFILE) MAXMBRS(1)
ADDPFCST FILE(MYLIB/MYFILE) TYPE(*PRIKEY) KEY(UPUPRF)
RGZPFM FILE(MYLIB/MYFILE) KEYFILE(*FILE)
You cannot add a constraint against something in QTEMP though.
Nothing to stop you from getting fancy
ADDPFCST FILE(MYLIB/MYFILE) TYPE(*PRIKEY) KEY(UPPWCD UPPWCT UPUPRF)

Rob Berendt
-- 
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com





simafrog <SimaFrog@xxxxxxxxxx> 
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
02/23/2004 12:38 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Fax to

Subject
Use of PF or LF as Work files






I noticed in this old process, one program creates the work file (PF) and 
the next pgm creates a Work file logical, and then prints the report off 
of this logical. Is there any benefit to this, could there not be a PF 
work file to print or would this take longer? The logicals are used 
previously bec. there are several print programs however mine is not part 
of that group. 
_______________________________________________
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 ...

Replies:

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.