Hi All,
I have been trying to pull the datasets(PS) list using HLQ through IDCAMS utility but I tried with NONVSAM then I am getting the list of PS & PDS both. \
Could you please suggest how can I get the list of datasets(PS) for a particular HLQ.
Thanks in Advance!
Address ispexec
"control errors return"
if rc<>0 then call xmsg('You are not running under ISPF ('rc')')
arg p
dsn=''
"LMDINIT LISTID(DSL) LEVEL("p")"
if rc>0 then exit xmsg('lmdinit' prm 'failed rc' rc)
do until rc<>0
"LMDLIST LISTID("dsl") OPTION(LIST) DATASET(dsn) STATS(YES)"
if rc>8 then save 'lmdlist(list) failed rc' rc
if rc=0 then say dsn ZDLDSORG ZDLDSNTP ZDLSIZE
end
"LMDLIST LISTID("dsl") OPTION(free)" /* DATASET(dsv)" */
"LMDFREE LISTID("dsl")"
Exit 0
xmsg:Address TSO "delstack";parse arg m;if m<>'' then say m;Exit 8