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: 8055
Location: East Dubuque, Illinois, USA

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 VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am
No new posts Unable to catalog a gdg dataset resid... Shovan JCL & VSAM 7 Fri Mar 24, 2017 2:24 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm


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