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     Limit rows from source

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Limit rows from source
 Login/Join
 
Member
posted
Is there a way to limit row count from source. Can it be done in master file?
I know you can limit output at report, but I need it to be limited at source. Any advises?

Aimar
WebFOCUS 8008, Windows


WebFOCUS 8.2.XX
 
Posts: 23 | Location: Europe | Registered: November 28, 2014Report This Post
Virtuoso
posted Hide Post
Hi Aimar,

What do you mean be "limited at source" ?
Would you like to limit available records based on user security access ? If so you must consider master file DBA security (lots of post on it and documentation).

Otherwise you can use
WHERE READLIMIT EQ 10;

in your TABLE FILE. It will only read the first 10 records.

Provide more information if not what you're looking for.


WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF
In Focus since 2007
 
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013Report This Post
Member
posted Hide Post
Mi Martin,

I mean that I can limit the number of rows at metadata level in master file. I found an old example from Cases:
For example, using the CAR master, I created a new master called CARLIMIT
with the following lines added to the end of the master:

END
DBA=DBA,$
USER=,ACCESS=R,RESTRICT=VALUE,NAME=SYSTEM,VALUE=RECORDLIMIT EQ 10,$

Then, when I ran the following request:

TABLE FILE CARLIMIT
PRINT *
END

only 10 records were returned instead of the 18 records that it would
have retrieved without this retriction. You can see in the view source
the status line of the request:

0 NUMBER OF RECORDS IN TABLE= 10 LINES= 10
ACCESS LIMITED BY PASSWORD

You can accomplish the same effect without DBA using FILTER FILE and
SET FILTER commands. However, these commands must be at a global level.
I will send you a separate email with a presentation on FILTERs that
shows how to create it and activiate it.

But this RECORDLIMIT example does not work - gives an error if I try to save master file.


WebFOCUS 8.2.XX
 
Posts: 23 | Location: Europe | Registered: November 28, 2014Report 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     Limit rows from source

Copyright © 1996-2020 Information Builders