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 - Help. how to schedule multiple .fexs to run in succession

Read-Only Read-Only Topic
Go
Search
Notify
Tools
SOLVED - Help. how to schedule multiple .fexs to run in succession
 Login/Join
 
Member
posted
Greetings,

I am looking for help with scheduling multiple .fex files to run in succession. The multiple .fex reports I'm running all save to an application directory and are used as a type of ODS for speed reasons.

anyway, looking for a way to do this so I can schedule all the "pre load" reports to run on the first of the month without human intervention and without having to create a schedule for each of the 10+ reports (.fex)

Thank you very much.
~R

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


WebFOCUS 8.1.0.5 DS, learning AS
Windows, All Outputs
 
Posts: 13 | Registered: February 05, 2016Report This Post
Guru
posted Hide Post
Have you tried creating one RC job with multiple tasks ?


WF 7.6.11
Oracle
WebSphere
Windows NT-5.2 x86 32bit
 
Posts: 398 | Registered: February 04, 2008Report This Post
Platinum Member
posted Hide Post
Hi,

Like RS mentioned, you can add tasks via RC. Easiest way, if using RC GUI, you can choose to schedule your middle FEX and click the Pre/Post-RPC button to add the pre and post processing FEXes.


JC
WebFOCUS Dev Studio / App Studio
8.2.01
Windows 7
 
Posts: 146 | Registered: November 09, 2015Report This Post
Virtuoso
posted Hide Post
In broad strokes:

Set up a daily RC job, which will check whether there is anything to do today. If not, end the job, and repeat tomorrow.

If today's the day (or yesterday was the day but the report set was not completed), the job will run a single report out of the series of N, and reschedule itself to run the next remaining report.

More specifically:

Create and populate a control file, with the data row keyed to run_date (the date on which successive monthly runs are to take place), and containing two integer fields, both initially zero: last_report_completed, and report_currently_running.

Your pre-process step locates and holds the row with maximal run_date <= the current date, transfers the run_date and two counter fields of that row into amper vars, and inspects the two counters.

If &last_report_completed >= N, there is nothing remaining to do, and just kill the job.

otherwise,
-- if &report_currently_running > 0 (so a report is already underway), reschedule the next run time to 10 minutes hence, and kill this run.

otherwise (&report_currently_running is zero):
-- set &report_currently_running = last_report_completed + 1
-- update the control table row accordingly
allow the main task to run (see more below)
and in post-processing
-- set &last_report_completed = &report_currently_running
-- set &report_currently_running = 0
-- update the control table row accordingly
-- if &last_report_completed < N, reschedule the next run time to 1 minute hence.

main task fex is a driver for the N reports. It will branch to the label corresponding to &report_currently_running, which leads to a -INCLUDE of the respective report's fex, and then branches to end of the driver.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Platinum Member
posted Hide Post
Quite the solution above from Jack, but I think your best bet is just to create the schedule, then edit and add tasks pointing to the additional FEXes as needed.


JC
WebFOCUS Dev Studio / App Studio
8.2.01
Windows 7
 
Posts: 146 | Registered: November 09, 2015Report This Post
Member
posted Hide Post
adding more tasks worked. Seems a bit clunky to have to save the schedule first. Then close it and open it again to be able to have the ability to add more tasks.

Anyway, case closed. thanks everyone.


WebFOCUS 8.1.0.5 DS, learning AS
Windows, All Outputs
 
Posts: 13 | Registered: February 05, 2016Report 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 - Help. how to schedule multiple .fexs to run in succession

Copyright © 1996-2020 Information Builders