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     run immediate without dstrun

Read-Only Read-Only Topic
Go
Search
Notify
Tools
run immediate without dstrun
 Login/Join
 
<Barry>
posted
My version of updating nextruntime to run a schedule immediately, any comments are welcome

-DEFAULT &SchedID = 'S135ooagmo0a';

-*DEFAULT &SchedID = 'S13482ra1a05';
-*SET &SchedID = 'S13dvjnnp702';

-SET &TIME1 = EDIT(&TOD);
-SET &HOUR = EDIT(&TIME1,'99$$$$$$');
-SET &MIN = EDIT(&TIME1,'$$$99$$$');
-SET &SEC = EDIT(&TIME1,'$$$$$$99');
-TYPE &HOUR HOUR
-TYPE &TIME1

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';
 
Report This Post
Master
posted Hide Post
Berry,

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.

Hope this helps




Scott

 
Posts: 865 | Registered: May 24, 2004Report 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     run immediate without dstrun

Copyright © 1996-2020 Information Builders