Jonathan,
If I have a single policy file with all the related
department rules and each time they want to add additional
rules with different working day thresholds maybe using this
-M method is easier. Its clear that the 'maths' and
date/timestamp manipulation is easier in shell (my preferred
is bash) than in the SQL of the policy (your example is
succinct but needs to be repeated everytime a new rule is
added with a different working day threshold, which is what
I'm trying (if possiblr) to avoid.
It seems to me the IBM SQL engine is perhaps missing more
'SQL' in built date/time functions like DateAdd and DateDiff
etc.. as this would be a moot point. Its a shame I can't make
one function that given a working day input as an argument
spits out how many 'real' days exist between them for the file
age comparison all in the SQL. It can be done for 1 specific
input argument, but needs the whole function repeated manually
for a different input argument, and further repeated for a
different argument etc..
Maybe I'm also compounding the issue by trying to make the
policy file as concise as possible (for sake of clarity as to
what the rules are trying to achieve, and easy expandability),
and demanding too much of the SQL-like syntax that IBM have
created.
I have options for mmfind or even (as suggested) -M inoput
to mmapplypolicy where I us bash to create a small function
that does what I need, spits out 'real days' given a working
day input, and using arrays and for-loop create a dynamic
calling of the mmapplypolicy command (which I'm kinda half
doing anyways for other reasons in my launcher script.
As always, I'm seriously amazed at people with soo much
experience and knowledge taking time out to help, guide, and
offer input like everyone has been doing!! I'm relatively
early in my career, so being able to interact and learn from
experienced persons is giving me such a wider insight!
Thanks!
Owen.

