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     Defined field missing on some records when joining two tables

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Defined field missing on some records when joining two tables
 Login/Join
 
Member
posted
I have joined two tables (outer left join) and also have defined a date field (current date - 15 days). The date field does not appears on the result join on segments from the host file which are missing a match in the cross reference file. A sample of my code is here:
SET ALL = ON
JOIN T@TTFL04.TTFCO AND T@TTFL04.TTFBR AND T@TTFL04.TTFDV AND T@TTFL04.TTFYY
AND T@TTFL04.TTFILE AND T@TTFL04.TTFSFX IN T@TTFL04 TO ALL CXL003.CXCOCD
AND CXL003.CXBRCD AND CXL003.CXDVCD AND CXL003.CXFLYY AND CXL003.CXFILE AND CXL003.CXFSFX IN CXL003 AS J2
END
SET ASNAMES=ON
SET PAGE=NOPAGE

DEFINE FILE T@TTFL04
TODAY/I8MDYY=&MDYY;
DNEWDATE/MDYY=TODAY;
CURRDATE/A8MDYY=DNEWDATE;
CURRY/A4=EDIT(CURRDATE,'$$$$9999');
CURRM/A2=EDIT(CURRDATE,'99');
CURRD/A2=EDIT(CURRDATE,'$$99');
CURRDTCYM/A6=CURRY | CURRM;
LASTMTHDATE/MDYY=DATEADD (DNEWDATE, 'D', -14.999);
LASTMTHDATE1/A8MDYY=LASTMTHDATE;
LASTMT/A2=EDIT(LASTMTHDATE1, '99');
LASTMTHYR/A4=EDIT(LASTMTHDATE1, '$$$$9999');
LASTDY / A2=EDIT(LASTMTHDATE1, '$$99');
LASTYRMTH/A8=LASTMTHYR | LASTMT | LASTDY;

Here are my results:

LASTYRMTH HBL# Container#
20050204 050255535636 CPSU 4212037
20050204 050255536025 INBU 5006654
20050204 050255536025 ITAU 4201731
20050204 050255536034 INBU 5006654
20050204 050255536034 ITAU 4201731
20050204 050275543347 CPSU 4056926
*Cell is blanks 08009519075
*Cell is blanks 10108725
20050204 105623001493 CLHU 2269897


What am I doing wrong?
 
Posts: 9 | Location: Wood Dale, IL | Registered: October 04, 2004Report This Post
Virtuoso
posted Hide Post
Have you tried adding a with clause on the defined date so it knows to create it for every record in the first table.
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Member
posted Hide Post
No. I am not too experienced with WebFocus. How would you do that?
 
Posts: 9 | Location: Wood Dale, IL | Registered: October 04, 2004Report This Post
Virtuoso
posted Hide Post
DEFINE FILE T@TTFL04
TODAY/I8MDYY WITH XXXXX =&MDYY;
DNEWDATE/MDYY=TODAY;
CURRDATE/A8MDYY=DNEWDATE;

WHERE XXXX is the name of a key field in T@TTFL04. This tells FOCUS when to define the field and any fields that use it. Also, I tend to avoid the TODAY as a name as it is also a function in FOCUS.
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Member
posted Hide Post
Dear Leah!!

That took care of my issue. I also took your advise and will no longer use TODAY to define fields.

Thanks a lot!!
 
Posts: 9 | Location: Wood Dale, IL | Registered: October 04, 2004Report This Post
Virtuoso
posted Hide Post
Glad to hear it worked. Sometimes it's the simple things that get you.

Have a good week.
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 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     Defined field missing on some records when joining two tables

Copyright © 1996-2020 Information Builders