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     [CLOSED] Accessing Two hold Files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Accessing Two hold Files
 Login/Join
 
Silver Member
posted
Greetings all, I have a question that I hope someone can help me with.

In my fex I have to retrieve my data in two Hold files. I would like to report off of just one of the hold files. Example below

 Select field 1, field 2, ... 
        from tables.

        table sqlout
        print LNKEY
              FIELD2
              FIELD3
              .
              .
              .
        ON TABLE HOLD AS LOANS1 FORMAT FOCUS   
  


 Select field 1, field 2, ... 
        from tables.

        table sqlout
        print LNKEY
              FIELD2
              FIELD3
              .
              .
              .
        ON TABLE HOLD AS LOANS2 FORMAT FOCUS 
        WHERE LOANS1.LNKEY EQ LOAN.LNKEY
[CODE]  


TABLE FILE LOANS2 [/CODE]


This does not work.

is there anyway that someone can think of to do what I'm attempting to do.

This message has been edited. Last edited by: FP Mod Chuck,
 
Posts: 38 | Location: Atlanta | Registered: June 14, 2005Report This Post
Virtuoso
posted Hide Post
Are you getting an error? What did you expect and what are you getting instead?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Silver Member
posted Hide Post
this is what I have coded for the second query

 Select field 1, field 2, ... 
        from tables.

        table sqlout
        print LNKEY
              FIELD2
              FIELD3
              .
              .
              .
        ON TABLE HOLD AS LOANS2 FORMAT FOCUS 
        WHERE LOANS1.LNKEY2 EQ LOAN.LNKEY 
 
Posts: 38 | Location: Atlanta | Registered: June 14, 2005Report This Post
Silver Member
posted Hide Post
I did not get a error back, however when I did a -exit and such to see my data in Loans2 ...there was allot of other loans. I am looking to report off of the second hold file 'Only" when Loan2.lkey EQ Loans1.lnkey
 
Posts: 38 | Location: Atlanta | Registered: June 14, 2005Report This Post
Virtuoso
posted Hide Post
I think you'll have to either join the two tables so you can get the effect you need or use MATCH FILE syntax. https://webfocusinfocenter.inf...ng/source/mrg159.htm


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Silver Member
posted Hide Post
Thanks so much BabaNYC, I will take a look at the Match....
 
Posts: 38 | Location: Atlanta | Registered: June 14, 2005Report This Post
Virtuoso
posted Hide Post
Hi,
If I understand correctly, you want to get from your second "select" only those records where the LNKEY field is equal to the LNKEY of the first "select". I would try the following:
  
Select field 1, field 2, ... 
        from tables.

        TABLE SQLOUT
        PRINT LNKEY
        ON TABLE HOLD AS LNKEY1
        END

Select field 1, field 2, ... 
        from tables.

        table sqlout
        print LNKEY
              FIELD2
              FIELD3
              .
              .
              .
        ON TABLE HOLD AS LOANS2 FORMAT FOCUS 
        WHERE LNKEY IN FILE LNKEY1

This should be more efficient than MATCH (unless there are more than 32K values for LNKEY in the first "select").


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Virtuoso
posted Hide Post
For small number of records DB_INFILE might be another solution.
https://webfocusinfocenter.inf...source/db_infile.htm


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report 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     [CLOSED] Accessing Two hold Files

Copyright © 1996-2020 Information Builders