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]flattening out data using an across hold file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[Solved]flattening out data using an across hold file
 Login/Join
 
Platinum Member
posted
I would like to flatten out some health information using an across hold file but I can't seem to get it to work. Whenever I try to put the information into the hold file I get the message '(FOC070) ACROSS IS IMCOMPATIBLE WITH THE REQUEST' Below is the code that I am using and an example of the output I get. I know I can create hold files for each HLTH CODE but I thought there should be an easier and more efficient way of doing this.

TABLE FILE SYVSTAI
SUM
     IMMU_CODE
BY  ID
ACROSS HLTH_CODE
END

	MEA1	MEA2	MUM1	MUM2	MCV	PPD	
3456			CO	CO		FE
4456	CO	CO	RE	RE		
5433	CO	CO	CO	CO	CO	CO
  

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


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
Master
posted Hide Post
hi,

yeah. And easier way is possible.

1)
Make a define for each column.
DEFINE FILE SYVSTAI
MEA1_CODE = IF HTLH_CODE EQ 'MEA1' THEN IMMU_CODE ELSE '';
MEA2_CODE = IF HTLH_CODE EQ 'MEA2' THEN IMMU_CODE ELSE '';

etc.etc.
END


2) magic match!
MATCH FILE SYVSTAI
SUM IMMU_CODE AS 'MEA1'
BY ID
WHERE HLTH_CODE EQ 'MEA1'
RUN
FILE SYVSTAI
SUM IMMU_CODE AS 'MEA2'
BY ID
WHERE HLTH_CODE EQ 'MEA2'
RUN

etc.etc.


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Guru
posted Hide Post
Or use format FOCUS:

TABLE FILE CAR
SUM SALES
BY COUNTRY
ACROSS CAR
ON TABLE HOLD FORMAT FOCUS
END
-RUN
TABLE FILE HOLD
PRINT *
END


Test: WF 8.2
Prod: WF 8.2
DB: Progress, REST, IBM UniVerse/UniData, SQLServer, MySQL, PostgreSQL, Oracle, Greenplum, Athena.
 
Posts: 454 | Location: Europe | Registered: February 05, 2007Report This Post
Platinum Member
posted Hide Post
Thanks Frans, that is what we are doing.


WF8
Windows
 
Posts: 117 | Registered: May 28, 2015Report This Post
Gold member
posted Hide Post
Hi Trudy

Just to wrap up this thread, I wondered if you could pass along your version of WebFOCUS and which HOLD FORMAT you were using when you got that FOC070.

Thanks!
Toby Mills
 
Posts: 62 | Registered: October 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]flattening out data using an across hold file

Copyright © 1996-2020 Information Builders