The solution given by Robert has worked for me. I am reading the same froM DCOLLECT. Yes, I am comfertable thru ISMF but here I want to listt all the names in a dataset inorder to use in my further programs.
With this I hope we can close this topic as my requirement is fulfilled.
Thanks to both of you for your replies.