Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Wildcard in Listcat

Status
Not open for further replies.

karao76

Programmer
Joined
May 20, 2003
Messages
4
Location
US
How can I use a wildcard to get a subset of the dataset listing? The dataset naming is such that they differ only a few characters in the last node and I dont want to loop thru 10000 datasets to find a few.
 
LISTC LEVEL(......)

Frank Clarke
Tampa Area REXX Programmers' Alliance
REXX Language Assn Listmaster
 
I probably did not make my question clear. LISTCAT LEVEL only allows you to specify up to a complete node but doesnt allow for wildcard characters like '*' . Am I right? I have datasets like this
NODE1.NODE2.NODE3.VSA32441 . If I specify LISTCAT LEVEL ("NODE1.NODE2.NODE3") , it returns a very huge list which I would have to loop thru to find what I want whereas what I am looking for is a way to specify something like
LISTCAT LEVEL ( "NODE1.NODE2.NODE3.VSA3*").

Pl let me know if that is possible

Thanks


 
If ISPF is active you can do;
Code:
DsLevel = 'MY.DATA.LEVEL'
Address 'ISPEXEC'
"LMDINIT LISTID(LISTID) LEVEL("DsLevel")"
if rc > 0 then return 0
"LMDLIST LISTID("LISTID") DATASET(DSNAME) OPTION(LIST)"
do while rc = 0
  say 'Found dataset 'dsname
  "LMDLIST LISTID("LISTID") DATASET(DSNAME) OPTION(LIST)"
end
"LMDFREE LISTID("LISTID")"
if rc > 0 then return 0
return 1
You can put 3.4 style wildcards into it (from memory).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top