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] Loop in ReportCaster

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Loop in ReportCaster
 Login/Join
 
Member
posted
Hi everyone,

I have a program in reportcaster with a list of identifiers at the top that I define so I can add to that list anytime with no issues. The program reads that list and counts how many identifiers are present. It then loops through the .fex for each value from the identifier list. I can't seem to get the program to deliver more than one file in Reportcaster. I am using Excel output and am OK outside reportcaster b/c I FILEDEF to a spot with different naming convention for each output/loop. Just can't seem to get the reportcaster verbage for all reports to end up in one e-mail.

Thinking I need to run through all with PCHOLD FORMAT EXL2K OPEN and then on the last loop/iteration change to PCHOLD FORMAT EXL2K CLOSE. Does that sound correct?

Thanks for any suggestions!

This message has been edited. Last edited by: Kerry,


WebFocus 7.6.6 Win 2K
 
Posts: 29 | Registered: June 19, 2006Report This Post
Member
posted Hide Post
This may also help. This is a very shortened version of the code.

---------------------------

TABLE FILE GETIDENTIFIER
PRINT
IDENTIFIER
WHERE (IDENTIFIER EQ '06017' OR '06965' OR '07920'......);
ON TABLE HOLD AS IDENTIFIERS FORMAT ALPHA
END
-RUN
-*
-SET &LOOPS=&LINES;
-REPEAT ENDREPEAT &LOOPS TIMES
-READ IDENTIFIERS NOCLOSE &P_PCDOCNUM.A6.

........Do a bunch of stuff to create report


ON TABLE PCHOLD FORMAT EXL2K
END
-ENDREPEAT


WebFocus 7.6.6 Win 2K
 
Posts: 29 | Registered: June 19, 2006Report This Post
Expert
posted Hide Post
Yes, it has to be a Compound report (using the OPEN and CLOSE statements).

In your -REPEAT, you could compute a Dialogue Manager amper variable that would contain the 'OPEN', blank or 'CLOSE' value depending on if you're in the first, middle or last iteration of the REPEAT loop.


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Virtuoso
posted Hide Post
In the RC manual, it states that reportCaster is only able to distribute a single report(including bursting a single report into mutiple sections). What you are try to do is distribute multiple reports with a single job, which will not work.

Follow Francis' suggestion a create a compound document and you'll be able to get what you need. Otherwise, your only option is to set up multiple jobs, but then you also get multiple emails.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Silver Member
posted Hide Post
You could also set up 1 job with multiple tasks generating 1 email with multiple attachments.


WebFOCUS All Releases
 
Posts: 45 | Location: NYC | Registered: September 21, 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] Loop in ReportCaster

Copyright © 1996-2020 Information Builders