Jim,
If you are doing "A left outer join B", make sure you are NOT referencing any columns from B in your where clause (unless you are specifically testing for IS NULL). I often prefer to place any B field contraints into my ON() clause instead of the WHERE clause....
Eric DeLong
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx]On Behalf Of
franz400@xxxxxxxxxxxx
Sent: Wednesday, May 28, 2008 9:53 AM
To: midrange-l@xxxxxxxxxxxx
Subject: strsql not showing all records
Have a join of a large tran file with a master file, joined by a session nbr.
Many tran records with a single master record.
Depending upon where I position the file (Where ..) I don't see all the records.
If I remove the 'and ccsess.ssccan='AV' I see them (many with 'AV').
But with that "and" selection the file stops showing trans after 2 days ago.
If I change the starting session# in the where clause I can see more recent records.
btw-there is non-displayable data in the file (this is comm session detail) in one field that is not part of the where clause, and
the msg on the screen says there is some non-displayed.
No err in joblog. V5R4 and sf99504 DB2 Group 14.
SELECT CCSESS.SSCCST, CCSESS.SSCCXE,CCSESD.SDCCSS, CCSESS.SSCYMD,
CCSESD.SDCCMJ, CCSESD.SDCCMI, CCSESD.SDCCPS, CCSESS.SSCCAS as AS,
CCSESS.SSCONO, CCSESS.SSDIV,CCSESS.SSLC, CCSESS.SSCLIN,
CCSESD.SDCCSR as SR, CCSESD.SDCCSQ, CCSESD.SDHMS, CCSESS.SSCCAN,
CCSESD.SDCCPK FROM ccsesd join ccsess on sdccss=ssccss WHERE SsCCSS
1119978 and CCSESS.SSCCAN ='AV'
It's my 'guess' the strsql screen affected by the non-displayable data, no error, but also not showing all records.
Any ideas?
Jim Franz
As an Amazon Associate we earn from qualifying purchases.