Points 1 and 2 are correct. after I get the list of PDS's that have the pattern "REXX" , i just want to display the names of these PDS's in my O/P file.
I was just trying to implement Point 3 and point 4 along with this piece of code.
My main objective is to check which PDS's have the pattern "REXX".
The list of PDS's having pattern "REXX" must be displayed in my Output file.
Since I dont know the names of PDS's that I need, I am using the SUBSTR function to compare the given pattern "REXX" with the PDS names.