MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VSAM record deletion!!

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Wed Jul 21, 2004 8:52 am    Post subject: VSAM record deletion!! Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Wed Jul 21, 2004 9:37 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
bprasanna
Beginner


Joined: 05 Sep 2003
Posts: 119
Topics: 33
Location: Hyderabad

PostPosted: Wed Jul 21, 2004 1:43 pm    Post subject: Reply with quote

Hi Kolusu,
Here is the link regarding the VSAM deletion.I tried the code that was provided by the guy in mainframe week.But as you said in BATCH I could not delete the records.Please have a look into the below link and let us know your valuble comments.



http://www.xephon.com/qindex/cgi-bin/xephon3/licence/getcode.cgi?pubfile=July.2002&datafile=A046A01

Regards
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group