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     Solved (FOC370) THE FIELDNAME USED IN JOIN CANNOT BE FOUND IN THE FILE: BLANK

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Solved (FOC370) THE FIELDNAME USED IN JOIN CANNOT BE FOUND IN THE FILE: BLANK
 Login/Join
 
Member
posted
This code was working in WF 7.1.7 not working in WF 7.7.04. I'm new to focus. Not sure what they are trying to do. Create a dummy row in a focus table?

Any help is appreciated

JOIN CLEAR *
JOIN BLANK WITH BUSINESS_UNIT_NAME IN HOLD TO ALL BLANK IN TWGIF100

DEFINE FILE HOLD
LEGAL_ENTITY_SORT/A4 = IF (FOCLIST EQ 1) THEN LEGAL_ENTITY_SORT
ELSE IF (FOCLIST EQ 2) THEN '9999'
ELSE ' ';
COMPANY_CODE/A8 = IF (FOCLIST EQ 1) THEN COMPANY_CODE
ELSE IF (FOCLIST EQ 2) THEN 'TOTAL'
ELSE ' ';
END

TABLE FILE HOLD
SUM
&PCTNUMFLD
&PCTDIVFLD
COMPUTE PCTA/&DOLLAR_FMT1 = IF (&PCTDIVFLD EQ 0) THEN 0
ELSE (&PCTNUMFLD / &PCTDIVFLD) * 100;

BY COMPANY_CODE
BY LEGAL_ENTITY_SORT
BY BUSINESS_UNIT_SUMMARY_SORT
BY BUSINESS_UNIT_SUMMARY_NAME
BY BUSINESS_UNIT_SORT
BY BUSINESS_UNIT_NAME

WHERE (FOCLIST LE 2);

ON TABLE HOLD
END
-RUN
-SET &SAYTIMEMSG = 'Create Row Totals (dummy Legal Entity created)';
-INCLUDE USAYTIME
-IF (&SAYTIMEERR NE 0) THEN GOTO NODATA;

JOIN CLEAR *
JOIN BLANK WITH BUSINESS_UNIT_NAME IN HOLD TO ALL BLANK IN TWGIF100

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


Windows Server 2003 and Windows Server 2008
 
Posts: 8 | Location: Orlando, Florida | Registered: January 12, 2010Report This Post
Virtuoso
posted Hide Post
Look up "Define-based joins"
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Member
posted Hide Post
does it make sense that it would work in WF 7.1.7 not work in WF 7.7.04?


Windows Server 2003 and Windows Server 2008
 
Posts: 8 | Location: Orlando, Florida | Registered: January 12, 2010Report This Post
Virtuoso
posted Hide Post
quote:
JOIN BLANK WITH BUSINESS_UNIT_NAME IN HOLD TO ALL BLANK IN TWGIF100

This statement indicates a field named BLANK is being DEFINEd in file HOLD and then JOINed to a similarly-named field in TWGIF100. However, your code does not show a DEFINE for field BLANK. I suppose field BLANK may already exist in file HOLD, which may explain why this code worked in an earlier release but does not in newer releases (due to code tightenening). Another bad practice I notice in your code is the repeated use of the same HOLD file name, namely "HOLD". You should at least differentiate them with names like HOLD1, HOLD2, HOLD3, etc., to avoid confusing WebFOCUS and the developers who must maintain it.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Member
posted Hide Post
Dan Satchell,

I don't see BLANK a field named BLANK in the hold file. Is it possible it was a reserved word in the earlier release and not in 7.7.04?

By the word about the code, It was written by People that are not senior consultants at IBI.(but I agree it is very confusing).

Thanks

Steve


Windows Server 2003 and Windows Server 2008
 
Posts: 8 | Location: Orlando, Florida | Registered: January 12, 2010Report This Post
Member
posted Hide Post
I added BLANK to the hold file and the report works. Just have to see if the results are the same as they were with previous release.

DEFINE FILE HOLD
BLANK /A1 = ' ';
LEGAL_ENTITY_SORT/A4 = IF (FOCLIST EQ 1) THEN LEGAL_ENTITY_SORT
ELSE IF (FOCLIST EQ 2) THEN '9999'
ELSE ' ';
COMPANY_CODE/A8 = IF (FOCLIST EQ 1) THEN COMPANY_CODE
ELSE IF (FOCLIST EQ 2) THEN 'TOTAL'
ELSE ' ';
END


Windows Server 2003 and Windows Server 2008
 
Posts: 8 | Location: Orlando, Florida | Registered: January 12, 2010Report This Post
Virtuoso
posted Hide Post
You should code a WITH phrase in the define, to match that in the join:
JOIN BLANK WITH BUSINESS_UNIT_NAME IN HOLD TO ALL BLANK IN TWGIF100

DEFINE FILE HOLD
  BLANK/A1 WITH BUSINESS_UNIT_NAME = ' ';
. . .


The WITH phrase, in both contexts, tells TABLE at what point in navigation to evaluate the field -- in the present example, whenever a new instance of the segment containing BUSINESS_UNIT_NAME is read in.
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Expert
posted Hide Post
Looks Mcguyver'ish to me; just not using it as documented, which is fine...


Tom Flynn
WebFOCUS 8.1.05 - PROD/QA
DB2 - AS400 - Mainframe
 
Posts: 1972 | Location: Centennial, CO | Registered: January 31, 2006Report 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     Solved (FOC370) THE FIELDNAME USED IN JOIN CANNOT BE FOUND IN THE FILE: BLANK

Copyright © 1996-2020 Information Builders