Thank you Ralph. Seems as a useful way.
Theres a possibility that the JCL fails with space abend since we may not be sure how much space to allocate as this solution basically lists out the whole inventory code one by one.
I had another idea, that is use the LIST COUNT and get the summart details ( It gives the total inventory size - 16000 Kilo bytes) Then I found the size of some random programs and its total lines of code individually. ( for e.g Pgm 1 had 15K bytes for 400 lines of code)
So I took a rough estimate of
Total LOC of inventory = 16000000 * 400/15000
(I understand that it considers maps also in the total inventory list)
Kindly let me know if its a viable solution to get rough estimates or could it give ambigious results.
Thanks and Regards