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.
DEFINE FILE BOTSCHED -* OFFSET/D12 = '&OFFSETHOURS.EVAL'; TODAYDATE/YYMD = &YYMD; OFFSET/D12 = IF TODAYDATE IS-FROM 20080406 TO 20081026 THEN 4 ELSE IF TODAYDATE IS-FROM 20090405 TO 20091025 THEN 4 ELSE IF TODAYDATE IS-FROM 20100404 TO 20101031 THEN 4 ELSE IF TODAYDATE IS-FROM 20100404 TO 20101031 THEN 4 ELSE 5 ; ORA_BASE/YYMD = '1970/01/01'; NoOfDays/D12 = DATEDIF(ORA_BASE, TODAYDATE, 'D'); SEC_HR/D12 = 3600 ; SEC_DAY/D12 = 86400 ; TIMEHR/D12 = &HOUR * SEC_HR ; TIMEMIN/D12 = (&MIN * 60) + &SEC; DaysSeconds/D19 = (((NoOfDays * SEC_DAY) + (OFFSET * SEC_HR) + TIMEHR + TIMEMIN ) * 1000) ; DS/A32 = FTOA(DaysSeconds,'(D19)','A32'); DS3/A32 = STRREP(32, DS, 1, ',', 0, '',32, 'A32') END
TABLE FILE BOTSCHED PRINT DS3 WHERE SCHEDULEID = '&SchedID.EVAL' ON TABLE HOLD AS NEXTRT FORMAT ALPHA END
-RUN -READ NEXTRT &NEWRT.A32 -SET &RT = IF ('&NEWRT.EVAL' EQ '') THEN 'There was an error in the execution of the file' ELSE '&NEWRT.EVAL'; -TYPE &RT END
-RUN SQL SQLORA
UPDATE BOTSCHED SET NEXTRUNTIME = LPAD('&RT',32,'0') WHERE SCHEDULEID = '&SchedID'; END
-SET &ERRMSG = IF( &RETCODE EQ 0 ) THEN 'The report submitted for execution' ELSE 'The report was not run, try later';
Correct me if I am wrong. All you want to do is run a schedule that is inside of report caster now (on demand). If you do not need to run in inside of a focexec, I have created a jsp page that all you have to do is from an html page call it passing a schedule id. if you want it is part of my flex interface for report caster. It can be downloaded from http://www.freewebs.com/texasstingray/flexinterfacereportcaster.htm. The jsp file is call runNow.jsp. There are complete instructions on installing the interface. you can look at an modify the runNow.jsp file.