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
 

 

Problem with deleting migrated GDG generation

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

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Thu Apr 16, 2009 2:31 pm    Post subject: Problem with deleting migrated GDG generation
Reply with quote

Hi,

I have a IDCAMS step like below to delete all generations of GDG and GDG base as well.
Code:
//STEP10  EXEC PGM=IDCAMS                             
//SYSPRINT  DD SYSOUT=*                               
//SYSIN     DD *                                     
    DELETE GNANAS.WORK.RA123.* PURGE             
    DELETE GNANAS.WORK.RA123 GDG FORCE           
    IF MAXCC GE 12 THEN SET MAXCC = 16               
    ELSE SET MAXCC = 0                               
/*           


This is SYSOUT.

Code:
IDCAMS  SYSTEM SERVICES                                           TIME: 03:30:35
                                                                               
    DELETE GNANAS.WORK.RA123.* PURGE                                       
IDC3014I CATALOG ERROR                                                         
IDC3007I ** VSAM CATALOG RETURN CODE IS 38                                     
IDC0551I ** ENTRY GNANAS.WORK.RA123.G0001V00 NOT DELETED                   
IDC0550I ENTRY (A) GNANAS.WORK.RA123.G0002V00 DELETED                       
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8                       
                                                                               
    DELETE GNANAS.WORK.RA123 GDG FORCE                                     
IKJ56238I DATA GNANAS.WORK.RA123 NOT ALLOCATED, UNKNOWN ERROR           
IKJ56238I DURING RECALL                                                         
IGD04001I UNEXPECTED CATALOG LOCATE PROCESSING ERROR - RETURN CODE 38           
IGD04001I REASON CODE 4                                                         
IDC0551I ** ENTRY GNANAS.WORK.RA123 NOT DELETED                             
IDC0001I FUNCTION COMPLETED, HIGHEST CONDITION CODE WAS 8                       
                                                                               
    IF MAXCC GE 12 THEN SET MAXCC = 16                                         
                                                                               
    ELSE SET MAXCC = 0                                                         
                                                                               
IDC0002I IDCAMS PROCESSING COMPLETE. MAXIMUM CONDITION CODE WAS 0     


There were two generations before running this step.
GNANAS.WORK.RA123.G0001V00 - This is migrated and not deleted
GNANAS.WORK.RA123.G0002V00 - This is deleted.

Since GNANAS.WORK.RA123.G0001V00 is not deleted, next statement DELETE GDG also failed.

Please let me know the reason for not deleting GNANAS.WORK.RA123.G0001V00.
Back to top
View user's profile Send private message

Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Thu Apr 16, 2009 2:37 pm    Post subject:
Reply with quote

Also, while trying to recall that generation from ISPF 3.4, it is saying "ARC1010I USER REQUEST FOR A MIGRATED DATA SET FAILED."

And, the message "LOCATE failed" in the top and "The LOCATE for 'GNANAS.WORK.RA123.G0001V00' failed, RC = 38" is shown when I press PF1.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Apr 16, 2009 3:44 pm    Post subject:
Reply with quote

And what do the manuals say about the messages issued ?
Back to top
View user's profile Send private message
Gnanas N

Active Member


Joined: 06 Sep 2007
Posts: 788
Location: Chennai, India

PostPosted: Thu Apr 16, 2009 9:18 pm    Post subject:
Reply with quote

Expat,

By contacting my support, it is found that there was a problem in HSM.

After resolving the problem, the IDCAMS step went fine... Thanks!
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Apr 17, 2009 11:39 am    Post subject:
Reply with quote

And I would guess at the problem generation was orphaned and had to be deleted from HSM using HSM tools.
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 Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Problem in Running Query via JCL vickey_dw DB2 3 Tue Oct 18, 2016 11:11 pm


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