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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Row Count
 Login/Join
 
Platinum Member
posted
Guys,

Anybody having clue on the syntax to find no of rows in a master file.

<>

tks,
sam


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
 
Posts: 133 | Registered: May 12, 2007Report This Post
Expert
posted Hide Post
Sam,

When you try and enter code or carat characters place it between [ code] and [/code] (no spaces) otherwise we will not see your entire post.

So you want to know how to produce the same output as Count(*) in Oracle?

Well -
SQL
  SELECT COUNT(*)
    FROM oracletable
   WHERE clauses etc.
;
TABLE FILE SQLOUT
PRINT E01/I9
END
will do it .... or -
TABLE FILE synonym_name
   WRITE CNT.fieldname/I9
or SUM CNT.fieldname/I9
or ADD CNT.fieldname/I9
or COUNT fieldname/I9
END

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
Platinum Member
posted Hide Post
any clue on &LINES funda ??


WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
 
Posts: 133 | Registered: May 12, 2007Report This Post
Virtuoso
posted Hide Post
F..

&LINES and &RECORDS are amper variables.
You get the result after the report

So

-SET &ECHO=ALL;
TABLE FILE synonym_name
   WRITE CNT.fieldname/I9
or SUM CNT.fieldname/I9
or ADD CNT.fieldname/I9
or COUNT fieldname/I9
ON TABLE HOLD
END
-TYPE &LINES


Will show you how many lines you have in the report, and then you can test if this is what you want.
PE if the result would be 10.000 you may decide to not print it, because that would print a little book.




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders