jeffrey swoboda, I am using your universe (some mods to it)…and I am sooo close to having the trends chart complete! I have a line that shows the trend over a two week period for total BCA jobs ran for the day, total success, and total failure…what I am stuck on is getting a line showing the total scheduled for the day…
Anybody have a clue how to figure out how many are scheduled to run for the day?
Cindy, are you asking me about the Universe I sent Michael or the BCA stat/errors report he is building? I do not mind sharing my Universe or report (when I say mine I really inherited it about 4 years ago I am not entirely sure where it came from). I read the directions in the Download area but it makes reference to posting in the SDK forum and then mentioning to a moderator. This is really just a .unv file and corresponding report, if you think it could benefit others if we put it in the download area just let me know what I need to do and I would be happy to share. - thanks
I’d just send the .unv and .reps as per the instructions and provide a bit of info on what it does and what it is for. I’ve got a .rep or two and maybe a .unv in the downloads area myself. My audit stuff I think. It is the perfect place for your stuff too.
The number of scheduled reports to run variable is a pain
To get the number of scheduled reports for TODAY this seems like it works
count(DS_PENDING_JOB.BEGIN_DATE + DS_PENDING_JOB.START_DATETIME)
That takes the jobs that have ran today and adds them to the jobs that are scheduled to run today and gives me a count on them GREAT! I have the number for today.
This cant look into the future and it cant look into the past (beyond today would = 0 and in the past would = just the DS_PENDING_JOB.START_DATETIME).
I could however take this value and write it into a file with the date. Then the report could grab this value and we could use it to have a history of what the number of scheduled reports should have been for those days.
I am spending more time on this than I had hoped…but it is one of those things that once you get thinking on it…you want to solve it…oh well…
I posted some code a while back using the BITAND operator to determine the “clear text” translation of the scheduling. You can use this in combination with the Original Start Date and some Sysdate functions (to determine the day of the week as well as the # of weeks since it was scheduled).
If you can get me some sample rows, I can help out in this, but it’s been a while since I’ve looked at the DS_PENDING_JOB table in any detail.
You can use convert to swap text to a date. This might be helpful.
The problem you’re having might be down to the format of the date, which is what the third argument refers to. The styles are listed in the link above.
I was reading you topic about your MODS to the report that Jeff Swoboda sent you…Are you finished with the MODS, if so can I get a copy of the final project…