View previous topic :: View next topic |
Author |
Message |
ranjit5311 Beginner
Joined: 27 Nov 2005 Posts: 27 Topics: 14
|
Posted: Wed Nov 01, 2006 8:19 am Post subject: Listing dataset in batch mode |
|
|
Hi all,
I am trying to list the datasets by giving incompelte dataset name i.e using wild card as we do in ISPF 3.4. I am doing this using LMDINIT. code is as follow:-
Code: | /*REXX*/
trace all
dsname = 'ttoi.ranjit*.te*'
if dsname = '' then exit
stat=msg('off')
ADDRESS ISPEXEC "LMDINIT LISTID(lmd) LEVEL(&dsname)"
do forever
say "imd" lmd
Address ispexec
"Lmdlist Listid(&lmd) Stats(nO) Dataset(var1) Option(LIST)"
say "dataset" var1
if rc > 0 then do
"Lmdfree listid("lmd") "
leave
end
end |
this is getting executed fine in fore ground mode. In batch mode it is getting failed with RC = -3.
How can one gets the list of datasets through batch mode.
Thanks,
Ranjit Kumar _________________ One should move lightly through the life, carrying no excess baggage. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12372 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|