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

Problem with deleting migrated GDG generation


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

Active Member


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

PostPosted: Thu Apr 16, 2009 2:31 pm
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: 792
Location: Chennai, India

PostPosted: Thu Apr 16, 2009 2:37 pm
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: 8797
Location: Welsh Wales

PostPosted: Thu Apr 16, 2009 3:44 pm
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: 792
Location: Chennai, India

PostPosted: Thu Apr 16, 2009 9:18 pm
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: 8797
Location: Welsh Wales

PostPosted: Fri Apr 17, 2009 11:39 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Deleting a Tape file JCL & VSAM 14
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts CA7 deleting files in steps after job... CA Products 4
No new posts Started task using a generation dataset JCL & VSAM 7
Search our Forums:

Back to Top