IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

IDCAMS LISTC question


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Grant Goodale

New User


Joined: 13 Nov 2010
Posts: 67
Location: Brampton, Ontario, Canada

PostPosted: Tue Aug 07, 2012 10:14 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 07, 2012 10:23 pm
Reply with quote

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
View user's profile Send private message
Grant Goodale

New User


Joined: 13 Nov 2010
Posts: 67
Location: Brampton, Ontario, Canada

PostPosted: Tue Aug 07, 2012 10:26 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Aug 07, 2012 10:30 pm
Reply with quote

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
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1788
Location: Bloomington, IL

PostPosted: Tue Aug 07, 2012 10:31 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Question for file manager IBM Tools 7
No new posts question for Pedro TSO/ISPF 2
No new posts LISTC in REXX CLIST & REXX 4
No new posts question on Outrec and sort #Digvijay DFSORT/ICETOOL 20
No new posts panel creation question TSO/ISPF 12
Search our Forums:

Back to Top