Focal Point
reportcaster and server issues

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4481073091

October 11, 2006, 01:15 PM
Mark1
reportcaster and server issues
It seems that at least twice a week our T2 server will be down at the same time that ReportCaster is trying to run a fex off of that server. Is there any way for me to set ReportCaster to delay schedules if the server is down? Right now, it tries to run them no matter what and just sends out an error report. Then I have to manually rerun the jobs myself. Thanks! I was thinking about making a fex that pulls in data from T2 and if that fex doesn't run then delay all of the other schedules somehow. That would be the only way that I can think of. Can you make one scheduled job be dependant on another though? Thanks again!


Windows version 768
October 11, 2006, 02:51 PM
Mark1
OK,
I found this code that I think will get me going in the right direction.

-LOOP
DOS STATE C:\unc\data\extract.txt
-IF &RETCODE EQ 0 GOTO DONE;
-GOTO SNOOZE

-SNOOZE
SLEEP 90
-RUN
-GOTO LOOP

-DONE
-TYPE The file exists. Continue processing...
TABLE FILE CAR
HEADING
"Finally Done"
PRINT CAR MODEL SEATS
BY COUNTRY
END

I have a stupid question though. When/what is the protocol for using a "-" in front of your settings? For example, "SET ASNAMES=ON" or "-SET &myvariable = 1". When do you use the hyphen? Thanks! Also, what does the -TYPE command do?


Windows version 768
October 11, 2006, 05:56 PM
susannah
SET commands work on focus language settings
-SET command is a dialogue manager command that lets you make up parms and tinker with them at will.
-TYPE is another dialog manager command that will type out whatever you tell it to, usually a bunch of dialogue manager parms, set or defaulted by your fex, eg:
-TYPE MYPARM1 IS &MYPARM1 BUT MYPARM2 IS &MYPARM2
The typeing out is done in the ECHO of the fex, so if you want to see them, be sure to
-SET &ECHO = ALL ; (or at least ON )
Wink

SLEEP 90 is a nice, simple solution, but you may want to refer to a cool article written by jodye yates at air canada on how to update your caster schedule file to change the next run time. I think the article is in the 'focus on developers' section.




In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
October 12, 2006, 10:35 AM
Mark1
Thanks for taking the time, Susannah!


Windows version 768
October 12, 2006, 10:53 AM
Mark1
One more thing Susannah: The &RETCODE variable in the code - I take it that is a variable set up by Focus on the DOS STATE command? I noticed the same kind of thing in your SET &ECHO = ON command.


Windows version 768