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 statement to catalog some VSAM clusters

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

New User


Joined: 26 Nov 2008
Posts: 7
Location: Brazil

PostPosted: Tue May 26, 2009 3:48 am    Post subject: IDCAMS statement to catalog some VSAM clusters
Reply with quote

Hi All,

I'm using the following IDCAMS statement to catalog some VSAM files:

Code:
DEFINE CLUSTER (NAME(ZFS.XXX) -
                RECATALOG VOLUMES(YYYVOL))  -
           DATA(NAME(ZFS.XXX.DATA)  -
                VOLUMES(YYYVOL))


The ZFS.XXX.DATA exists on YYYVOL I'm just trying to redefine the cluster
to have the dataset on the catalog.

When i attempt to do that i receive a :
Code:
IDC3014I CATALOG ERROR                                                 
IDC3009I ** VSAM CATALOG RETURN CODE IS 86 - REASON CODE IS IGG0CLEY-12
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12       


And i can't figure out why .

Thank You.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 26, 2009 4:08 am    Post subject:
Reply with quote

Hello and welcome to the forum,

Suggest you use DELETE, then DEFINE in the same IDCAMS step.
Back to top
View user's profile Send private message
ehrocha

New User


Joined: 26 Nov 2008
Posts: 7
Location: Brazil

PostPosted: Tue May 26, 2009 4:12 am    Post subject:
Reply with quote

Hi Dick,

I've already tried that .

Code:
 DEL ZFS.ADCD.DEV                                                     
IDC3012I ENTRY ZFS.ADCD.DEV NOT FOUND                                 
IDC3009I ** VSAM CATALOG RETURN CODE IS 8 - REASON CODE IS IGG0CLEG-42
IDC0551I ** ENTRY ZFS.ADCD.DEV NOT DELETED                             
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8             
                                                                       
 DEFINE CLUSTER (NAME(ZFS.ADCD.DEV) -                                 
                 RECATALOG VOLUMES(Z9USS1))  -                         
            DATA(NAME(ZFS.ADCD.DEV.DATA)  -                           
                 VOLUMES(Z9USS1))                                     
IDC3014I CATALOG ERROR                                                 
IDC3009I ** VSAM CATALOG RETURN CODE IS 86 - REASON CODE IS IGG0CLEY-12
IDC3003I FUNCTION TERMINATED. CONDITION CODE IS 12                     
                                                                       
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 12     



Thanks for replying
Back to top
View user's profile Send private message
ehrocha

New User


Joined: 26 Nov 2008
Posts: 7
Location: Brazil

PostPosted: Tue May 26, 2009 4:19 am    Post subject:
Reply with quote

I Also tried to list the DS, to make sure it do not exist :

Code:
LISTCAT ENTRIES(ZFS.ADCD.DEV) ALL                                             
IDC3012I ENTRY ZFS.ADCD.DEV NOT FOUND                                           
IDC3009I ** VSAM CATALOG RETURN CODE IS 8 - REASON CODE IS IGG0CLEG-42         
IDC1566I ** ZFS.ADCD.DEV NOT LISTED                                             
IDCAMS  SYSTEM SERVICES                                           TIME: 19:47:40
         THE NUMBER OF ENTRIES PROCESSED WAS:                                   
                   AIX -------------------0                                     
                   ALIAS -----------------0                                     
                   CLUSTER ---------------0                                     
                   DATA ------------------0                                     
                   GDG -------------------0                                     
                   INDEX -----------------0                                     
                   NONVSAM ---------------0                                     
                   PAGESPACE -------------0                                     
                   PATH ------------------0                                     
                   SPACE -----------------0                                     
                   USERCATALOG -----------0                                     
                   TAPELIBRARY -----------0                                     
                   TAPEVOLUME ------------0                                     
                   TOTAL -----------------0                                     
         THE NUMBER OF PROTECTED ENTRIES SUPPRESSED WAS 0                       
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 4   

[/code]
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue May 26, 2009 4:41 am    Post subject:
Reply with quote

Hello,

Are you trying to work with a linear dataset?

Is this a db2 dataset?
Back to top
View user's profile Send private message
ehrocha

New User


Joined: 26 Nov 2008
Posts: 7
Location: Brazil

PostPosted: Tue May 26, 2009 4:45 am    Post subject:
Reply with quote

This is a ZFS(OMVS) VSAM Dataset.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7931
Location: Bellevue, IA

PostPosted: Tue May 26, 2009 4:54 am    Post subject:
Reply with quote

The MAC for IDC3009I, 86, 12 says
Quote:
12 Explanation: The VVR for the data set being
recataloged indicated it was for a LINEAR data set,
but the DEFINE RECATALOG command did not specify the
LINEAR keyword.
zFS data sets require the LINEAR keyword.
Back to top
View user's profile Send private message
ehrocha

New User


Joined: 26 Nov 2008
Posts: 7
Location: Brazil

PostPosted: Tue May 26, 2009 5:06 am    Post subject:
Reply with quote

Thank You SOoooooooooooooo ,
Worked Perfectly .. Living and learning .

Code:
IDCAMS  SYSTEM SERVICES                                         
                                                                 
 DEFINE CLUSTER (NAME(ZFS.ADCD.DEV) -                           
                 RECATALOG VOLUMES(Z9USS1) LINEAR)  -           
            DATA(NAME(ZFS.ADCD.DEV.DATA)  -                     
                 VOLUMES(Z9USS1))                               
IDC0508I DATA ALLOCATION STATUS FOR VOLUME Z9USS1 IS 0           
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 0       
                                                                 
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0
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 Fail to change physical VSAM filename... jacobdng CICS 1 Fri Jan 20, 2017 12:36 pm
No new posts how to recover an uncataloged VSAM da... archanamuthukrishnan All Other Mainframe Topics 3 Wed Jan 11, 2017 6:18 pm
No new posts Underlying DB2 VSAM LDS - SMF recording vasanthz All Other Mainframe Topics 6 Thu Jan 05, 2017 4:20 am
No new posts -913/-911 Deadlock during UPDATE stat... NoSleep319 DB2 5 Fri Nov 18, 2016 12:37 am
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am


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