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     Restricting the data in Hold file

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Restricting the data in Hold file
 Login/Join
 
Member
posted
Hi,

i want to restrict the contents of Hold file while printing it.
For ex.
Content of hold file.

Accurate WTD
Agree 71%
Disagree 29%
StrongAgree 0%

I want to display as
Accurate WTD
Agree 71%
Disagree 29%

please suggest me in this regard.
 
Posts: 9 | Registered: June 16, 2008Report This Post
Virtuoso
posted Hide Post
Couldn't you do this with just using IF or WHERE selections?


GamP

- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
 
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007Report This Post
Member
posted Hide Post
I have tried using WHERE but the desired result is not coming.
Can u suggest me a sample code Using IF.
 
Posts: 9 | Registered: June 16, 2008Report This Post
Virtuoso
posted Hide Post
Basava,
Could you post your code?


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
Member
posted Hide Post
Here is my code...

TABLE FILE T_ACC_QUALITY
SUM
COMPUTE WTD/D4% = IF (ACCURATE EQ 'Agree') THEN ((&AGR/&ACC) * 100) ELSE IF (ACCURATE EQ 'Disagree') THEN ((&DAGR/&ACC)*100) ELSE 0 ;
BY ACCURATE
-*ACROSS ACCURATE
WHERE MO_WK_I EQ &WK
ON TABLE HOLD AS H1
END

TABLE FILE H1
PRINT *
WHERE ACCURATE EQ 'Agree' AND ACCURATE EQ 'StronglyAgree'
END
-EXIT
 
Posts: 9 | Registered: June 16, 2008Report This Post
Platinum Member
posted Hide Post
WHERE ACCURATE EQ 'Agree' AND ACCURATE EQ 'StronglyAgree'

Your where statement is asking for only records where the field ACCURATE equals both Agree and StronglyAgree (which isn't possible).

You need an OR:

WHERE ACCURATE EQ 'Agree' OR ACCURATE EQ 'StronglyAgree'


WF 7.6.11
Output: HTML, PDF, Excel
 
Posts: 123 | Location: UK | Registered: October 09, 2003Report This Post
Expert
posted Hide Post
quote:
I have tried using WHERE but the desired result is not coming.
Can u suggest me a sample code Using IF

Well done for demonstrating how much you need training. Check out the training centre links on the forum front page.

T



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Virtuoso
posted Hide Post
Assuming you want to eliminate the 'StronglyAgree' give a WTD of zero values, look into using a WHERE TOTAL.


Leah
 
Posts: 1317 | Location: Council Bluffs, IA | Registered: May 24, 2004Report This Post
Master
posted Hide Post
quote:
COMPUTE WTD/D4% = IF (ACCURATE EQ 'Agree') THEN ((&AGR/&ACC) * 100) ELSE IF (ACCURATE EQ 'Disagree') THEN ((&DAGR/&ACC)*100) ELSE 0 ;

According to this, your 'StronglyAgree' will be zero.


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report 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     Restricting the data in Hold file

Copyright © 1996-2020 Information Builders