View previous topic :: View next topic
|
Author |
Message |
Chetan Kumar
New User
.jpg)
Joined: 03 Dec 2012 Posts: 46 Location: India
|
|
|
|
Is there a way to close VSAM files used by CICS via ISPF without logging into CICS region and doing "CEMT I FIL(filename)" and then close it ? |
|
Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1138 Location: Bamberg, Germany
|
|
|
|
See if IDCAMS VERIFY is of help for you. |
|
Back to top |
|
 |
Chetan Kumar
New User
.jpg)
Joined: 03 Dec 2012 Posts: 46 Location: India
|
|
|
|
I tried closing the VSAM file that is opened in CICS by issuing the IDCAMS VERIFY command. But it failed with below error
Error Opening filename1
** VSAM OPEN RETURN CODE IS 168 **
Function Terminated. Condition Code is 12
IDCAMS Processing complete. Maximum Condition Code was 12.
The VSAM return code 168 means that the files are in use. |
|
Back to top |
|
 |
Rohit Umarjikar
Global Moderator

Joined: 21 Sep 2010 Posts: 3014 Location: NYC,USA
|
|
|
|
Please talk to CICS support team if they have any utilities/product that your site purchased. We use IPCPBTCH / CAFC utility.
if nothing then try programmatically. |
|
Back to top |
|
 |
Garry Carroll
Senior Member
Joined: 08 May 2006 Posts: 1184 Location: Dublin, Ireland
|
|
|
|
Try issuing a console command e.g. F region-name,CEMT S FIL(filename) CLO DIS . This can be done from e.g. SDSF if your site allows it.
It's usually a good idea to also disable the file when closing as otherwise it may get opened when referenced by a CICS task.
Garry. |
|
Back to top |
|
 |
Chetan Kumar
New User
.jpg)
Joined: 03 Dec 2012 Posts: 46 Location: India
|
|
|
|
I tried this under =6 (ISPF Command Shell)
F regionname,CEMT S FIL(filename) CLO DIS
but getting below error.
SYMBOLIC PARMS IN VALUE LIST IGNORED -
COMMAND PROCEDURE HAS NO PROC STMT
Command rejected - 'LOGOFF ' command not supported under ISPF.
ISPD226 Invalid command - Commands such a LOGON, LOGOFF, SPF, ISPF, etc. are not permitted. |
|
Back to top |
|
 |
Joerg.Findeisen
Senior Member

Joined: 15 Aug 2015 Posts: 1138 Location: Bamberg, Germany
|
|
|
|
See what Garry has written:
This can be done from e.g. SDSF if your site allows it. |
|
Back to top |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8693 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
F regionname,CEMT S FIL(filename) CLO DIS |
This is a console command and as such CANNOT be executed in ISPF. You may be able to execute it in SDSF (with authorization) but not in ISPF option 6. If you have authorization, you can enter it as a JCL statement and submit the job. |
|
Back to top |
|
 |
Chetan Kumar
New User
.jpg)
Joined: 03 Dec 2012 Posts: 46 Location: India
|
|
|
|
Below command works in console.
F regionname,CEMT S FIL(filename) CLO DIS
but it is as good as closing it using CEMT command in console. But I couldn't do it via ISPF or TSO. |
|
Back to top |
|
 |
|