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
 
Can we delete a vsam file when it is being used by CICS.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
View previous topic :: :: View next topic  
Author Message
rkprasanth_m

New User


Joined: 22 Jun 2006
Posts: 44

PostPosted: Wed Mar 21, 2007 4:52 pm    Post subject: Can we delete a vsam file when it is being used by CICS.
Reply with quote

I have a requirement to delete and re-organize a VSAM file. can we directly delete a vsam file when CICS is up or We need to first close the VSAM file in CICS.

Would someone tell me the process involved to delete a vsam file when cics is up.
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: Wed Mar 21, 2007 5:15 pm    Post subject:
Reply with quote

You have to make sure that the file is not allocated to any process before you delete it.
Back to top
View user's profile Send private message
rakeshreddy
Warnings : 1

New User


Joined: 21 Mar 2007
Posts: 28
Location: Bangalore

PostPosted: Thu Mar 22, 2007 2:24 pm    Post subject:
Reply with quote

Hi,

I think it is better to uninstall the file defination first and then delete that file. It will ensures that the file is not being used by any other processes.

correct me if any mistakes..
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Thu Mar 22, 2007 2:58 pm    Post subject: Re: Can we delete a vsam file when it is being used by CICS.
Reply with quote

hi!

recreating an active file when cics is active is the most dangerous thing to do;
here are the reasons.

( not applicable if the file is read only; in this case there are no data integrity issues;
closing,deactivating,reactivating,reopening will do the work )

in case of a read/write file You/Your-organization MUST, repeat MUST take into account the data integrity, and recovery backup issues.

In a very BASIC scenario there are usually two windows, batch and online, and backups will be taken at the end of the windows ( or at the beginning, depending on the point of view)

deleting and recreating an online data set during the online windows will certainly break the logic flow for emergency restarts, forward recovery procedures, (the same logical record might be at a different RBA ).

in this case it would be safer to force a journal/log switch so that for emrgency/recovery purposes You will have to sets of files consistent for further processing

your dataset and the logs from the start of the online windows ,
the same after the delete/reload.

It will certainly work in an exceptional/emergency situation, keeping Your fingers crossed in case of further malfunctioning;
otherwise Your organization NEEDS to revise/change the operational procedures in order to streamline the process should this need become an habit

regards
Back to top
View user's profile Send private message
rakeshreddy
Warnings : 1

New User


Joined: 21 Mar 2007
Posts: 28
Location: Bangalore

PostPosted: Fri Mar 23, 2007 4:12 pm    Post subject:
Reply with quote

Hi enrico-sorichetti,

The problems what you explained aboves are only for recreation of a FILE definations OR applicable for all other types of resources.

Could you make me clear in that.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Mar 23, 2007 8:28 pm    Post subject:
Reply with quote

Hello,

If you want to do any kind of stand-alone process with a file (regardless if it is VSAM, QSAM, or database), you must make sure that no other process is using it.

By far the "best" time to do stand-alone things is when there is a "maintenance window". The online(s) are down and batch processing is suspended. After the "maintenance" is complete, the system is returned to notmal processing.
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 -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts Identifying Interfaces in CICS/mainframe Ashishpanpaliya CICS 5 Fri Oct 13, 2017 3:21 pm
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am

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