It was the data in the outer file it had records that matched and did
not
Changed the SQL Exception to include trading Partner and it worked
SELECT DISTINCT SDKCOO,SDDOCO,SDDCTO,SDLNID,SDMCU, CCTPID           
 FROM AJdevjdta/F4211la A, AJDEVMDTA/F59911 B                       
 EXCEPTION JOIN ajdevmdta/F59912 ON                                 
  SDKCOO = CBKCOO                                                   
  and SDDOCO = CBDOCO                                               
  and SDDCTO = CBDCTO                                               
  and SDLNID = CBLNID                                               
  and SDMCU = CBMCU                                                 
  and CBTPID = B.CCTPID                                             
  WHERE SDDOCO in                                                   
(select DISTINCT CCDOCO from ajdevmdta/F59911 where CCTYPE = 'AB')  
  and SDLNTY = 'S' and SDNXTR <= '560'                              
  for READ ONLY                                                     
Inner File
Order   Order    Or   Line     Business      
 Co     Number   Ty  Number      Unit        
-----  --------  --  ------  ------------    
00001   2533516  SO    1000           935    
00001   2533516  SO    2000           935    
00001   2533516  SO    3000           935    
00001   2533516  SO    4000           935    
********  End of data  ********              
Outer 
CBTPID    CBKCOO      CBDOCO   CBDCTO   CBLNID   CBMCU           
00029689  00001    2,533,516     SO      1,000            935    
00029689  00001    2,533,516     SO      2,000            935    
00029689  00001    2,533,516     SO      3,000            935    
00029689  00001    2,533,516     SO      4,000            935    
00003411  00001    2,533,516     SO      1,000            920    
00003411  00001    2,533,516     SO      2,000            920    
00003411  00001    2,533,516     SO      3,000            935    
00003411  00001    2,533,516     SO      4,000            935     
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[
mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
rpg400-l-request@xxxxxxxxxxxx
Sent: Tuesday, June 26, 2007 1:00 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: RPG400-L Digest, Vol 6, Issue 671
Send RPG400-L mailing list submissions to
        rpg400-l@xxxxxxxxxxxx
To subscribe or unsubscribe via the World Wide Web, visit
        
http://lists.midrange.com/mailman/listinfo/rpg400-l
or, via email, send a message with subject or body 'help' to
        rpg400-l-request@xxxxxxxxxxxx
You can reach the person managing the list at
        rpg400-l-owner@xxxxxxxxxxxx
When replying, please edit your Subject line so it is more specific than
"Re: Contents of RPG400-L digest..."
As an Amazon Associate we earn from qualifying purchases.