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     Metrics and Stacking Like Variables

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Metrics and Stacking Like Variables
 Login/Join
 
Silver Member
posted
Hello;

I have done some research but was not able to find any info on this, and I have spent time in the application trying to make this work and was not successful. I have joined two databases that have the same information. I am trying to count customer ID numbers from each database and stack them on top of each other under an across value that breaks the customer ID numbers out by type. This should be an easy function, but I just cannot figure out how to make it work.

Thanks...


WebFocus 7.6.4
SQL
HTML and Excel
 
Posts: 49 | Registered: June 06, 2008Report This Post
Member
posted Hide Post
It sounds to me like you are trying to concatinate data from two tables. To do this you can use the 'USE' command.

The structure, SEGNAME, LOCATION, and segment sizes must all be identical.
It will use the FIELDNAMES from the first mfd, (AS filename).


USE
fname1 AS FNAME1
fname2 AS FNAME1
END


WebFOCUS 7.6.7
HP/UX
EXLEK, PDF, HTML, CSV, and ALPHA
 
Posts: 3 | Location: Camas WA | Registered: December 09, 2008Report This Post
Silver Member
posted Hide Post
Would it be like this?
JOIN
 ACTIVES_V.ACTIVES_V.AGENCYID IN ACTIVES_V TO MULTIPLE
 AGENCY_V.AGENCY_V.AGENCYID IN AGENCY_V AS J1
 END
 USE
AGENCYID1 AS ACTIVES_V
AGENCYID2 AS ACTIVES_V
END  


WebFocus 7.6.4
SQL
HTML and Excel
 
Posts: 49 | Registered: June 06, 2008Report This Post
<JG>
posted
quote:
To do this you can use the 'USE' command.

USE applies ONLY to FOCUS and XFOCUS databases.

The simple way.

FILEDEF HOLD DISK HOLD.FTM (APPEND
-RUN
TABLE FILE CAR
COUNT CAR
COMPUTE SOURCE/A10='TABLE 1';
BY COUNTRY
ON TABLE HOLD FORMAT ALPHA
END
-RUN
TABLE FILE CAR
COUNT MODEL
COMPUTE SOURCE/A10='TABLE 2';
BY COUNTRY
ON TABLE HOLD FORMAT ALPHA
END
-RUN
TABLE FILE HOLD
SUM E02
ACROSS COUNTRY
BY SOURCE
END
 
Report This Post
Virtuoso
posted Hide Post
If the ACROSS variable is to identify the source table -- define a SOURCE variable in each table, and use MORE:
define file one
  src/a3='one';
end
define file two
  src/a3='two';
end
table file one
  sum ...
  by ...
  across [or by] src
where ...
[on table hold ...]
MORE
file two
where ...
END

[Use the bracked alternative if you want to hold the data for further manipulation before generating the report.]


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report 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     Metrics and Stacking Like Variables

Copyright © 1996-2020 Information Builders