Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Loop or repeat to create multiple excel tabs
Go
New
Search
Notify
Tools
Reply
  
[SOLVED] Loop or repeat to create multiple excel tabs
 Login/Join
 
Member
posted
Hello,

I just need some direction on a process I'd like to look into. I'd like to repeat this code below and open the results in their excel tab each month for past 12 months. Example tab one will reflect June 2019, tab two reflects July 2019 etc..

DEFINE FILE BILLINGEDITS_BLACKKNIGHT
COMPLETED_MONTHLY/MtrYY = HDATE(COMPLETIONDATE, 'YYMD');
COMPLETED_DAILY/YYMD = HDATE(COMPLETIONDATE, 'YYMD');
END

TABLE FILE BILLINGEDITS_BLACKKNIGHT
SUM
COMPUTE ACTIVITY/A60 = 'Billing Edits - BlackKnight';
COMPLETED_MONTHLY
COMPUTE DAILY_COMPLETED/I5 = CNT.STATUS;
BY COMPLETED_DAILY
WHERE COMPLETED_DAILY GT &12_MTHS_AGO;
ON TABLE PCHOLD FORMAT XLSX CLOSE
END
-RUN
-EXIT

This message has been edited. Last edited by: FP Mod Chuck,


8.2, windows, excel
 
Posts: 2 | Registered: May 22, 2019Reply With QuoteReport This Post
Expert
posted Hide Post
Check out the documentation on BYTOC.

Try searching for "Creating a Simple TOC Report". Has an example which looks like its what you want.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Virtuoso
posted Hide Post
  
TABLE FILE CAR
SUM DEALER_COST
SALES
BY COUNTRY NOPRINT
BY CAR
ON TABLE PCHOLD FORMAT XLSX
ON TABLE SET COMPOUND 'BYTOC 1'
END


WebFOCUS 8206, Unix, Windows
 
Posts: 1707 | Location: New York City | Registered: December 30, 2015Reply With QuoteReport This Post
Member
posted Hide Post
Thanks guys, this is exactly what I needed. Really appreciate it.


8.2, windows, excel
 
Posts: 2 | Registered: May 22, 2019Reply With QuoteReport This Post
Expert
posted Hide Post
Hi Tomishere

I really hope you read the documentation and understand this option and not just copy what BabakNYC has posted.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Loop or repeat to create multiple excel tabs

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.