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.
In 7.1.x, just write a pre-processing fex. For example, the following allows one of my jobs to run on the 1st, every Friday and the last day of the month that is Monday through Thursday.
-* File pp632.fex
-* Pre-Processing fex for Adoption Claims.
-*
-* Check to see if today is an appropriate day to run Adoption Claims.
-* If not set &&KILL_RPC to Y and flush the job.
-*
-* Check for the 1st the Month
-*
-SET &DAY=EDIT(&DMY,'99');
-IF &DAY EQ 01 THEN GOTO CHECK_STS;
-*
-* It is not the 1st, check to see if it is Friday
-*
-SET &DOWK=&DATEW;
-IF &DOWK EQ 5 THEN GOTO CHECK_STS;
-*
-* It is not Friday, check to see if it is the last Day of the Month
-* and Monday thru Thursday.
-*
-SET &MTH=&YYMD/100;
-SET &NXTMTH=AYM(&MTH,1,'I6');
-SET &NXTFST=&NXTMTH*100+1;
-SET &MTHLST=AYMD(&NXTFST,-1,'I8');
-IF (&YYMD EQ &MTHLST) AND (&DOWK GE 1) AND (&DOWK LE 4) THEN GOTO FINISHED;
-*
-* Kill job
-*
-SET &&KILL_RPC=Y;
-*
-FINISHED
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006
When you use a routine like JG has suggested you set your schedule so the job will execute every day during the week (the first Monday would need to run on days 1 - 7). In JG's example, you would check for &&KILL_RPC in the program and GOTO DROPOUT when it is equal to 'Y'. -DROPOUT would be the last line of your program. Be aware that some ReportCaster versions do not like -EXIT.
Pat WF 7.6.8, AIX, AS400, NT AS400 FOCUS, AIX FOCUS, Oracle, DB2, JDE, Lotus Notes
Posts: 755 | Location: TX | Registered: September 25, 2007
PB, it is my understanding that once &&KILL_RPC is set to 'Y' the whole job is flushed as soon as the pre-process fex finishes. The job I took my example from is a batch job that has only one step but I don't check &&KILL_RPC, the job just dies when the pre-processing fex finishes and &&KILL_RPC is set to 'Y'.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006