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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: How to delete a rec in VSAm Cluster without insert any rec
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: 8593
Location: Back in jolly old England

PostPosted: Tue Jul 08, 2008 6:23 pm    Post subject:
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    Post subject: Reply to: How to delete a rec in VSAm Cluster without insert
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    Post subject: Reply to: How to delete a rec in VSAm Cluster without insert
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: 7931
Location: Bellevue, IA

PostPosted: Tue Jul 08, 2008 6:48 pm    Post subject:
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    Post subject: Reply to: How to delete a rec in VSAm Cluster without insert
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: 7931
Location: Bellevue, IA

PostPosted: Fri Jul 11, 2008 4:34 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Fri Jul 11, 2008 4:40 pm    Post subject: Reply to: How to delete a rec in VSAm Cluster without insert
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    Post subject: Reply to: How to delete a rec in VSAm Cluster without insert
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Fri Jul 11, 2008 4:51 pm    Post subject: Reply to: How to delete a rec in VSAm Cluster without insert
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    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 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 JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts How to delete second instance from Fl... Gunapala CN DFSORT/ICETOOL 6 Tue Oct 18, 2016 11:42 pm


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