View previous topic :: View next topic
|
Author |
Message |
Grant Goodale
New User
Joined: 13 Nov 2010 Posts: 67 Location: Brampton, Ontario, Canada
|
|
|
|
I am trying to do a specific IDCAMS LISTC. My catalog is as follows:
AA.BB.CC.DD
AA.B1.C1.DD
AA.B2.C2.DD2
AA.B3.C3.DD
AA.PP.QQ.RR
If my LISTC specifies LVL(AA.**.DD) then I will get:
AA.BB.CC.DD
AA.B1.C1.DD
AA.B3.C3.DD
No problem. However, I would like to also be able to pick up AA.B2.C2.DD2.
If I try to specify LVL(AA.**.DD*), IDCAMS gets very upset:
IDC3568I AA.**.DD* INVALID USE OF *
Is it possible to do what I want with IDCAMS? If so, can anyone point me in the general driection ?
TIA |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
The bookshelf is DFSMS. The manual is AMS for Catalogs and the quote from the manual is
Quote: |
ENTRIES(entryname[ entryname...]) |
LEVEL(level) specifies that all entries that match the level of qualification specified by (level) are to be listed irrespective of the number of additional qualifiers. If a generic level name is specified, only one qualifier replaces the *. The * must not be the last character specified in the LEVEL parameter. LEVEL(A.*) will give you an error message. |
|
|
Back to top |
|
|
Grant Goodale
New User
Joined: 13 Nov 2010 Posts: 67 Location: Brampton, Ontario, Canada
|
|
|
|
I read that as well. I was hoping that someone would know of a clever way for me to get the other names. Obviously, the answer is No.
Thanks. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You could probably get the data through DCOLLECT or LISTDSI or (depending upon your site) other tools. But when the manual tells you that you cannot use an asterisk as the last level of a name, and you do it anyway, well you got the expected results. |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
Grant Goodale wrote: |
I read that as well. I was hoping that someone would know of a clever way for me to get the other names. Obviously, the answer is No.
Thanks. |
Not through IDCAMS alone. Think about whether you can encapsulate your LISTCAT in Rexx. |
|
Back to top |
|
|
|