Thanks dajrokan
But the following command has some wrong argument
ls | grep COMPILED.PGM | xargs grep -B 1 name_of_routine
-B 1 before the name_of_route is an invalid argument
Also, the COMPILE.PGM file does save the history per day, meaning if a routine is compiled several times in one day, it will only save the last one. Nonetheless, COMPILE.PGM.* is serialized in a non-uniform sequence, so forth you have to sort it by date.
Hence, this does not show a full history of the compilation of the routine.