Hi Kalpana,
To read the Subject Categorization and Resolution Categorization you can use the same piece of code mentioned in the earlier reply by Mr Anderson. You just need to change the value of IV_REF_KIND that you are passing to either C or D.
Regards.
Deepak Ramchandran.