Hi Mohammad,
The attached PDF contains an article I put together way back in 2013 for ICM version 5.2.0. and was posted on the "ECM Community Blog" (which unfortunately has been deprecated by IBM). Hopefully the code still works!
Regards,
Dave
------------------------------
Dave Ward
------------------------------