member = 'IHASDWA'
fds=''
do until fds<>''
say 'Enter libname'
pull ds
if ds='X' then exit 0
if sysdsn("'"ds"("member")'")='OK' then fds=ds
say member 'not found in' ds
iterate
end
say member 'is in' fds
fds=''
do until fds<>''
say 'Enter libname'
pull ds
if ds='X' then exit 0
if sysdsn("'"ds"("member")'")='OK' then fds=ds
say member 'not found in' ds
iterate
end
say member 'is in' fds