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] Output Format Exl2k using Repeat command

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Output Format Exl2k using Repeat command
 Login/Join
 
Member
posted
-DEFAULT &NUM_RECORDS=0;
-SET &NUM_RECORDS = IF &NUM_RECORDS EQ 0 THEN 1 ELSE &NUM_RECORDS;
-REPEAT LAB1 &NUM_RECORDS TIMES
-TYPE Hello World
-LAB1

I need the output in Excel format.

This message has been edited. Last edited by: <Kathryn Henning>,


WebFOCUS version 8.1.05
Windows 10
 
Posts: 15 | Registered: November 28, 2007Report This Post
Virtuoso
posted Hide Post
jsn,
Do you want to output "Hello World" to XL?


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
Yes.

If I passed the parameters for example 2 times means Hello World should display in Excel 2 times.


WebFOCUS version 8.1.05
Windows 10
 
Posts: 15 | Registered: November 28, 2007Report This Post
Virtuoso
posted Hide Post
Ok.
Well in order to output to XL you have to use a TABLE command with the option ON TABLE PCHOLD FORMAT EXL2K. This means that first you have to write your HELLO WORLDs into a file, then create a MASTER for this file, and lastly use the TABLE command to read the file and output to XL.
Need help for that?


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
quote:
ON TABLE PCHOLD FORMAT EXL2K.

Yes Please. Please give me a sample


WebFOCUS version 8.1.05
Windows 10
 
Posts: 15 | Registered: November 28, 2007Report This Post
Master
posted Hide Post
How about this:

TABLE FILE SYSCOLUM
	PRINT COMPUTE THEROW/A13 = 'Hello world';
	BY	TBNAME	NOPRINT
WHERE RECORDLIMIT EQ 1
ON TABLE HOLD AS HOLD_ROW
END

-SET &COUNTER = 0;

TABLE FILE HOLD_ROW
	PRINT THEROW	AS 'Column name'
ON TABLE PCHOLD FORMAT EXL2K

-START_LOOP
MORE
FILE HOLD_ROW
-SET &COUNTER = &COUNTER + 1;
-IF &COUNTER GE 99 THEN CONTINUE ELSE GOTO START_LOOP
END


G'luck


_____________________
WF: 8.0.0.9 > going 8.2.0.5
 
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010Report This Post
Platinum Member
posted Hide Post
That's pretty slick Dave.


WF 7.7.05
HP-UX - Reporting Server, Windows 2008 - Client, MSSQL 2008, FOCUS Databases, Flat Files
HTML, Excel, PDF
 
Posts: 149 | Location: Dallas, TX | Registered: June 08, 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     [SOLVED] Output Format Exl2k using Repeat command

Copyright © 1996-2020 Information Builders