Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

IDCAMS LISTC question

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Grant Goodale

New User


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

PostPosted: Tue Aug 07, 2012 10:14 pm    Post subject: IDCAMS LISTC question
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: 8120
Location: East Dubuque, Illinois, USA

PostPosted: Tue Aug 07, 2012 10:23 pm    Post subject:
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: 55
Location: Brampton, Ontario, Canada

PostPosted: Tue Aug 07, 2012 10:26 pm    Post subject:
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: 8120
Location: East Dubuque, Illinois, USA

PostPosted: Tue Aug 07, 2012 10:30 pm    Post subject:
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: 1771
Location: Bloomington, IL

PostPosted: Tue Aug 07, 2012 10:31 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts Asynchronous CICS Processing Question moezbud CICS 1 Mon Mar 06, 2017 6:13 pm
No new posts CICS Question RE: Browse, Readnext an... moezbud CICS 7 Sun Mar 05, 2017 5:45 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us