Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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: 10256
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 Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts Issue with NDM process to transmit ES... chetanambi All Other Mainframe Topics 6 Wed May 03, 2017 10:52 am
No new posts File processing vishwakotin Mainframe Interview Questions 9 Fri Apr 28, 2017 11:38 am
No new posts Occurrence of various strings within ... TS70363 JCL & VSAM 1 Thu Apr 27, 2017 8:18 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us