Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Question regarding outer Join -Mainframes

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Question regarding outer Join -Mainframes
 Login/Join
 
Member
posted
Hi,
I am new to FOCUS. Have some doubt regarding joins. Please help.

I would like to know the syntax for Left outer join. And the alternate ways for performing Left outer join in focus reporting Language.

This message has been edited. Last edited by: Sandesh,


Thanks
Sandesh Gadgil
 
Posts: 16 | Registered: December 20, 2005Report This Post
Guru
posted Hide Post
Sandesh-
Have you looked in the Technical Documentation Library? See button above?
 
Posts: 252 | Location: USA | Registered: April 15, 2003Report This Post
Member
posted Hide Post
Hey thanks for the information. I will look at it.


Thanks
Sandesh Gadgil
 
Posts: 16 | Registered: December 20, 2005Report This Post
Member
posted Hide Post
I looked at the Document. But I am not sure what should I do in the below scenario.

Here is the master file.

FILENAME = EEISTAT, SUFFIX = FOC,$

SEGNAME = HDRSEG, SEGTYPE = S1, $
FIELDNAME = MLIEEID ,ALIAS=EEID , A7 ,FIELDTYPE=I,$ TRANSFE

SEGNAME = EEDATA, SEGTYPE = U, PARENT = HDRSEG ,$
FIELDNAME = EECLIENT ,ALIAS=CCLIENT , I5L ,FIELDTYPE=I,$ CABS CL
FIELDNAME = EELASTNAME ,ALIAS=LNAME , A25 ,$ LAST NAME
FIELDNAME = EEFIRSTNAME ,ALIAS=FNAME , A14 ,$ FIRST NAME
FIELDNAME = EEINITLCD ,ALIAS=INITIAL , A1 ,$ MIDDLE INITIAL
FIELDNAME = EENICKNAME ,ALIAS=NICKNM , A11 ,$ NICKNAME

SEGNAME = EECMT2, SEGTYPE = S1, PARENT = HDRSEG ,$
FIELDNAME = EECMTTYPE ,ALIAS= , A08 ,$ CMT TYPE
FIELDNAME = EEBLCMT2DT,ALIAS= , I6YMD ,$ BILL COMMENT ADD DATE
DEFINE EEBLCMT2SD/YMD = EEBLCMT2DT;
FIELDNAME = EECMTTXT ,ALIAS= , A60 ,$ EE CMT
$TYP = EEEMAIL1, EECMTTXT CONTAINS EE'S E-MAIL SIZE 50 CHAR


Description:- Earlier I had two mnemonics for EECMTTYPE 1. EEEMAIL 2. SVCNUMTYP

Now I have four MNEMONIC TYPES
1. COSTCNTR
2. DESTCOSTCT
3. EEEMAIL
4. SVCNUMTYP

code from program:-

TABLE FILE HOLD0B
PRINT MLIEEID AS EEID
ON TABLE HOLD AS HOLD00
END
-RUN
-*
-STEP75
-TYPE STEP75: USING COMBINED FILE GATHER DATA FROM EEISTAT

JOIN CLEAR *
JOIN EEID IN HOLD00 TO MLIEEID IN EEISTAT AS J75.

DEFINE FILE HOLD00
EESURVDT/YMD = &YMD;
EEEMAIL/A50 = IF EECMTTYPE EQ 'EEEMAIL1' THEN
SUBSTR(60,EECMTTXT,1,50,50,EEEMAIL) ELSE ' ';
EEBILLCMT40/A40 = SUBSTR(60,EEBILLCMT,1,40,40,EEBILLCMT40);
END
-*
TABLE FILE HOLD00
PRINT EEID
MLIEEID EELASTNAME EEFIRSTNAME EECLIENT
EEASGNCODE EERENTSTCD EESSN EESURVDT
EEEMAIL EENEWBUSFONE
EEBILLCMT40 EEEMPIDCD EEDEPTIDCD
BY EEID

What was happening earlier:-

HOLD00 file is getting the EEID from some other focus file and when I was joning it with MLIEEID of EEISTAT I was getting the EEEMAIL if its present else I was populating spaces.

As of now:- Since we have added two more mnemonics when I join HOLD00 and EEISTAT I am getting the record COSTCNTR or DESTCOSTCT ahead of EEMAIL hence even if the EEMAIL is present its not showing up in the report. I am getting the EEMAIL only if there is no COSTCNTR and DESTCOSTCT.

In this scenario what should I do Please help. And please let me know if you need any more information

This message has been edited. Last edited by: Sandesh,


Thanks
Sandesh Gadgil
 
Posts: 16 | Registered: December 20, 2005Report This Post
Expert
posted Hide Post
Hi Sandesh,

The manuals/documentation as suggested in another topic regarding outer joins may be of interest as well.

Hope this helps. Big Grin

Cheers,

Kerry


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
Member
posted Hide Post
Thanks Kerry for the information. I think I can implement the same using a MATCH statement. Thanks a lot once again.

Happy new year


Thanks
Sandesh Gadgil
 
Posts: 16 | Registered: December 20, 2005Report This Post
Expert
posted Hide Post
You are welcome Sandesh.

Happy New Year. Smiler


Kerry Zhan
Focal Point Moderator
Information Builders, Inc.
 
Posts: 1948 | Location: New York | Registered: November 16, 2004Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     Question regarding outer Join -Mainframes

Copyright © 1996-2020 Information Builders