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.
SET KEEPDEFINES = ON
DEFINE FILE GEACA09
FUNDAREAORG/A7 WITH FUND = FUND | AREA |ORG;
END
-RUN
JOIN FUNDAREAORG WITH FUND IN GEACA09 TO FUND AND ORG IN SECURITY AS JSEC23
END
-RUN
0 ERROR AT OR NEAR LINE 8 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC376) SYNTAX ERROR OR MISSING ELEMENT IN JOIN/COMBINE COMMAND:
banging head against wall. What am i missing? if i JOIN A AND B IN host TO A AND B IN guest AS JSEC23 I don't get the error, of course the join won't work because the B's aren't the same elements So i define A|B|C TO A AND B get error i tried defining on both host and guest JOIN A|B|C ... TO A|B of course it didn't work. get same error. What am i missing??This message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
i thought that, too, Ginny so i have SET KEEPDEFINES = ON and i tried it the normal way, as well, with the defines after... and nada... same error.
JOIN FUNDAREAORG WITH FUND IN GEACA09 TO FUND AND ORG IN COMPILED_SECURITY_UFOS AS JSEC23
END
DEFINE FILE GEACA09
FUNDAREAORG/A7 WITH FUND = FUND | AREA |ORG;
END
-RUN
0 ERROR AT OR NEAR LINE 6 IN PROCEDURE ADHOCRQ FOCEXEC *
(FOC376) SYNTAX ERROR OR MISSING ELEMENT IN JOIN/COMBINE COMMAND:
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
well, in focus files, sure join bigkeyfield in A to key1 and key2 and key3 in B ...
i tried JOIN FUND AND AREAORG WITH FUND IN A (where the defined field was AREAORG) and died. you can't it seems have a multifield join where one of them is defined... sigh.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
a. I believe your original "(FOC376) SYNTAX ERROR OR MISSING ELEMENT IN JOIN/COMBINE COMMAND" message was because of the mismatch in number of from and to fields: If you specify multiple fields on the Join To side, you must list same number on the Join From side.
b. In the 7.1.3 features document, the JOIN syntax states that WITH can be omitted if the defined field is predefined (using KEEPDEFINE=ON); so try dropping the WITH phrase altogether. -- But then again, the syntax given for define-based join does not provide for a multiple-component join key.
c. If that doesn't work, try a "conditional"* join, listing the equijoin conditions as WHERE's. Then you may not need a define at all.
- - -
* A misnomer -- there's nothing conditional (as in, if such-and-such don't try to find a matching TO instance) about such a join. I would prefer calling it a condition-based join.This message has been edited. Last edited by: j.gross,
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
thanks jack i tried it w/o the WITH and it just said 'NO SUCH FIELD'... .. I just talked to BJ and we think that w/76 you can make volatile oracle files... (while we wait for DBA's to create a view) so i'll define the 3 fields on the guest table... DEFINE FILE guest B/A1=SUBSTR(..); C/A1=SUBSTR(...); NO EDIT! END TABLE FILE guest SUM USER_ID BY A BY B BY C ON TABLE HOLD AS myguest FORMAT SQLORA END ... and now JOIN INNER A AND B AND C IN host TO the same 3 in myguest... BJ is going to research the exactly settings for volatility with that oracle extract... and i'll re-edit this post... and this might be the way to go for us.. ... yet another reason to have the whole world in focus files!
... well, volatile isn't supported w/ Oracle. it seems...back to the drawing board.This message has been edited. Last edited by: susannah,
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
yes, Ginny. that was it. but w/ oracle, there's no persistence=volatile option. it seems that the global-temp is the only option and that will be harder to manage ... so, we're back to DBA views... i've learned a lot today! thanks everyone.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
JOIN CLEAR *
JOIN FILE GEACA&FYR AT FUND TAG FH TO UNIQUE
FILE COMPILED_SECURITY_UFOS AT FUND TAG FX AS J1
WHERE FH.FUND EQ FX.FUND ;
WHERE FH.AREA | FH.ORG EQ FX.ORG ;
WHERE FX.USER_ID EQ '&USER_ID.EVAL' ;
END
Lo and behold! a little wizardy from the queen of rdbms (you know who i mean), and success. Its this new conditional join feature.. you can put a 'sort of' define in the where condition; This is great. works like a charm.
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003