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



I don't use join logical too often, simply because the need isn't usually there. However, in the few cases when I have it has been to make the programming easier. That is, I don't have to even think about opening multiple files and doing any number of steps in the code to accomplish what I want to do. The logic is usually straight line, short, and more easily comprehensible than it would have been with multiple files.

Jerry C. Adams
IBM System i Programmer/Analyst
B&W Wholesale
office: 615-995-7024
email: jerry@xxxxxxxxxxxxxxx


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Thursday, September 18, 2008 9:48 AM
To: RPG programming on the AS400 / iSeries
Subject: RE: Joins vs. explicitly reading multiple files

<sarcasm>
Not only that, but joins (and views) make Query/400 too easy for the users
to understand, and, if you have developers that can only handle using RPG
in the basest definition (Report Program Generator) then you might put the
slackers out of a job.
</sarcasm>

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





"Murphy, Mark" <MurphyM@xxxxxxxxxx>
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
09/18/2008 10:41 AM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


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

Subject
RE: Joins vs. explicitly reading multiple files






You are going to have to test it to make a judgment. I don't use join
logicals unless there is a very
good reason to do so. I use scenario B, and we have good performance. It
is possible that we could
get better performance with scenario A, but I don't have to deal with the
complexities of promoting
join logicals to production, and impact analysis is simplified as well. In
addition, joins can
perform poorly depending on the specifics of the files being joined.

My suggestion would be to pick a way for your shop standard based on you
shops needs, and use that
method unless you can't. Only optimize when performance is poor enough
that the cost to optimize is
easily recovered in much better performance. I would suggest that the
difference between scenarios A
and B is nanoseconds in most cases.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of James Lampert
Sent: Wednesday, September 17, 2008 1:16 PM
To: RPG programming on the AS400 / iSeries
Subject: Joins vs. explicitly reading multiple files

Consider 2 scenarios (both using native Record Level Access):

Scenario A: We read from a join-logical with 5 different based-on
physicals

Scenario B: We read from the 5 based-on physicals individually, either
directly or using simple logicals.

In terms of performance, is there any reason to prefer one over the other?


--
James H. H. Lampert
Touchtone Corporation

--
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 e-mail transmission contains information that is intended to be
confidential and privileged. If you receive this e-mail and you are not a
named addressee you are hereby notified that you are not authorized to
read, print, retain, copy or disseminate this communication without the
consent of the sender and that doing so is prohibited and may be unlawful.
Please reply to the message immediately by informing the sender that the
message was misdirected. After replying, please delete and otherwise
erase it and any attachments from your computer system. Your assistance
in correcting this error is appreciated.
--
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 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.