View previous topic :: View next topic |
Author |
Message |
bprasanna Beginner
Joined: 05 Sep 2003 Posts: 119 Topics: 33 Location: Hyderabad
|
Posted: Wed Jul 21, 2004 8:52 am Post subject: VSAM record deletion!! |
|
|
Hi all,
I read a document in Mainframe week saying we can delete the records from a VSAM ksds file if it is in use.
The person had posted his code which was in Assembler and when I tried it it is not working.
Anybody had idea about this?Is it really possible to delete the records from a VSAM file when it is in use by some other job?
Thanks |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Wed Jul 21, 2004 9:37 am Post subject: |
|
|
Bprassana,
Quote: |
Is it really possible to delete the records from a VSAM file when it is in use by some other job?
|
If it is another BATCH job, then you really CANNOT delete the records in a vsam file unless you cancel the job.
But on the other hand if the vsam file is held by CICS , then you can delete/update/insert records in the vsam file. This can be done by closing the vsam file , so that the batch job can manipulate the file, you can also stop the cics transaction while the batch job is execueting and upon completion you can restart the cics transaction.
It would a good idea if you could provide the source from mainframe week. _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
bprasanna Beginner
Joined: 05 Sep 2003 Posts: 119 Topics: 33 Location: Hyderabad
|
|
Back to top |
|
|
|
|