Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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 -> SMS & VSAM
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
References
Moved: Mon Jul 07, 2008 8:56 pm by Frank Yaeger From DFSORT/ICETOOL to SMS & VSAM
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 3511
Location: Brussels once more ...

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

Senior Member


Joined: 06 Jun 2008
Posts: 893
Location: Atlanta, GA

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

Senior Member


Joined: 06 Jun 2008
Posts: 893
Location: Atlanta, GA

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: 3083
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: 3083
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> SMS & VSAM All times are GMT + 6 Hours
Page 1 of 1