Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8152
Location: East Dubuque, Illinois, USA

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

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: 10308
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: 10308
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 Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts Skip file from delete pema_yozer All Other Mainframe Topics 3 Tue Aug 29, 2017 3:19 pm
No new posts Delete IMS remote transaction when MO... Sam Singh IMS DB/DC 0 Wed Aug 23, 2017 9:12 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us