Focal Point
[SOLVED] Loop or repeat to create multiple excel tabs

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/7377093196

July 01, 2019, 11:01 PM
Tomishere
[SOLVED] Loop or repeat to create multiple excel tabs
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
July 01, 2019, 11:12 PM
Waz
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.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

July 02, 2019, 08:17 AM
BabakNYC
  
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
July 02, 2019, 10:01 AM
Tomishere
Thanks guys, this is exactly what I needed. Really appreciate it.


8.2, windows, excel
July 02, 2019, 05:15 PM
Waz
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.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!