View previous topic :: View next topic
|
Author |
Message |
ArunBalaji
New User
Joined: 18 Feb 2008 Posts: 7 Location: chennai
|
|
|
|
I need to delete a record in a VSAM file without inserting any record. Just need to delete an existing record. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Why do you think that you need to insert a record to delete a record ? |
|
Back to top |
|
|
ArunBalaji
New User
Joined: 18 Feb 2008 Posts: 7 Location: chennai
|
|
|
|
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 |
|
|
Rajesh Sampath
New User
Joined: 18 Jun 2008 Posts: 9 Location: Pune
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
ArunBalaji
New User
Joined: 18 Feb 2008 Posts: 7 Location: chennai
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
ArunBalaji
New User
Joined: 18 Feb 2008 Posts: 7 Location: chennai
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
|
|