Of course is TD12 ok, but you'll probably not migrate to TD12 as this is still a very old version, there's TD13, TD13.10, TD14 and TD14.10 already :-)
You could tell the IT staff to add some lines to the existing script:
SELECT 'monday' WHERE (CURRENT_DATE - DATE '0001-01-01') MOD 7 = 0;
.IF ACTIVITYCOUNT = 0 THEN GOTO SkipMyQuery;
your SELECT....
.LABEL SkipMyQuery;
Of course is TD12 ok, but you'll probably not migrate to TD12 as this is still a very old version, there's TD13, TD13.10, TD14 and TD14.10 already :-)
You could tell the IT staff to add some lines to the existing script:
SELECT 'monday' WHERE (CURRENT_DATE - DATE '0001-01-01') MOD 7 = 0;
.IF ACTIVITYCOUNT = 0 THEN GOTO SkipMyQuery;
your SELECT....
.LABEL SkipMyQuery;