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

How to delete a rec in VSAm Cluster without insert any rec


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

New User


Joined: 18 Feb 2008
Posts: 7
Location: chennai

PostPosted: Mon Jul 07, 2008 1:18 pm
Reply with quote

I need to delete a record in a VSAM file without inserting any record. Just need to delete an existing record.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jul 08, 2008 6:23 pm
Reply with quote

Why do you think that you need to insert a record to delete a record ?
Back to top
View user's profile Send private message
ArunBalaji

New User


Joined: 18 Feb 2008
Posts: 7
Location: chennai

PostPosted: Tue Jul 08, 2008 6:37 pm
Reply with quote

No i just need to delete a record in a VSAM file. Is it possible to delete a record in a VSAM file?
Back to top
View user's profile Send private message
Rajesh Sampath

New User


Joined: 18 Jun 2008
Posts: 9
Location: Pune

PostPosted: Tue Jul 08, 2008 6:41 pm
Reply with quote

Dont want to think about insert a record for the delete. If you want to delete a particular record from the cluster. Before that you want to read the record and delete it by using I-O mode.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jul 08, 2008 6:48 pm
Reply with quote

Quote:
No i just need to delete a record in a VSAM file. Is it possible to delete a record in a VSAM file?
Yes. You can use IDCAMS to repro all records except the one to delete, delete/define the VSAM file, then repro back. You can use the COBOL DELETE verb. You can use CICS commands to delete the record. How you delete it depends on your specific environment and requirements. However, you cannot use IDCAMS to delete a single record without going through the repro, delete, define, repro process.
Back to top
View user's profile Send private message
ArunBalaji

New User


Joined: 18 Feb 2008
Posts: 7
Location: chennai

PostPosted: Fri Jul 11, 2008 11:28 am
Reply with quote

If the VSAM file having lakh of records means it will get late to retrive all the records except for the record need to delete and reload the data again to the VSAM. How can we avoid this? I tried this one, the job running for more than an hour for a single VSAM file.

How to avoid this?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jul 11, 2008 4:34 pm
Reply with quote

You can write a program to delete the record. If the VSAM file is available in CICS, you can use CECI to delete the record (if you have authority to use CECI). If you have a third-party product, you can use it to delete the record.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jul 11, 2008 4:40 pm
Reply with quote

Quote:

No i just need to delete a record in a VSAM file. Is it possible to delete a record in a VSAM file?



small detail missing...
what is the vsam organization? RRDS,ESDS,KSDS

You can delete by key only if the vsam is a KSDS
Back to top
View user's profile Send private message
ArunBalaji

New User


Joined: 18 Feb 2008
Posts: 7
Location: chennai

PostPosted: Fri Jul 11, 2008 4:46 pm
Reply with quote

My VSAM file is KSDS only.

And can you give me by using which utility we can do this, and syntax for that delete command also.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Jul 11, 2008 4:51 pm
Reply with quote

there is no utility available in mvs/zOS to do what You want
there add on products ( which You have to pay for )
DITTO, FILEAID, FILEMANAGAER, .....

for each of them You will have to check the proper documentation
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 DELETE SPUFI DB2 1
No new posts DSNTIAUL driven delete IBM Tools 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts How to delete a user's alias from the... JCL & VSAM 11
Search our Forums:

Back to Top