I can take all necessary info. manually by using SAVE LIST.
I can do this by entering the filename in the dsname level with space option selected. Then i will 'SORT TRACKS' and SAVE LIST. i will get information on datasets in a file named 'USERID.LIST.DATASETS'
The same i need to do in an automated way. Is there any way?