Page 1 of 1

Closing VSAM file in CICS

PostPosted: Mon Jul 20, 2009 3:58 pm
by nareshraj_21
Hello,

Please let me know the commands to close the previously opened VSAM file in CICS environment.
CEMT SET F1(FILEX) CLOSED is not working. Please let me know if I am doing something wrong.

Naresh

Re: Closing VSAM file in CICS

PostPosted: Tue Jul 21, 2009 4:08 pm
by nayanpatra
You can try with
EXEC CICS SET FILE(filename) CLOSED

Re: Closing VSAM file in CICS

PostPosted: Wed Jul 22, 2009 1:41 am
by dick scherrer
Hello,

That is program code. . .

Naresh,
If you explain why you believe you should close an online file, someone will be able to post a more useful reply. Most places heavily frown on people closing files in use by cics on their own.

Re: Closing VSAM file in CICS

PostPosted: Fri Jul 24, 2009 4:39 pm
by nareshraj_21
nayanpatra wrote:You can try with
EXEC CICS SET FILE(filename) CLOSED

Hello thr,
....... that worked thankx

Re: Closing VSAM file in CICS

PostPosted: Fri Jul 24, 2009 4:45 pm
by nareshraj_21
dick scherrer wrote:Hello,

That is program code. . .

Naresh,
If you explain why you believe you should close an online file, someone will be able to post a more useful reply. Most places heavily frown on people closing files in use by cics on their own.


Hi Dick,
I was in need to close the online file b'cause I was using the same file in other programmes too. Thankx lot for ur suggestions. And 'yes' I'll b more specefic in future.

Naresh