IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Cannot open VSAM file for EDIT operation in CICS


IBM Mainframe Forums -> CICS
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ranjani
Warnings : 1

New User


Joined: 25 Oct 2006
Posts: 13

PostPosted: Fri Mar 02, 2007 7:25 am
Reply with quote

i have a vsam file which is defined with shareoptions(3,3).

I am able to do READ ONLy on this file in the CICS region. when i add options like DEL, BRO, UPD etc for the file and open it, it says open/close failed

Fil(JFILE1 ) Vsa Clo Une Rea Upd Add Bro Del Sha OPEN/CLOSE FAILED
Dsn( TRN01.CUST.VSAM )

can someone please explain this. also can you please say how to find the failure reason
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 02, 2007 7:47 am
Reply with quote

Fairly simple, You say you have "READ ONLY" access and yet you attempt to access it with DELete and UPDate? What are ecpecting, "Oh, go ahead, I trust you.... icon_rolleyes.gif ".
Back to top
View user's profile Send private message
ranjani
Warnings : 1

New User


Joined: 25 Oct 2006
Posts: 13

PostPosted: Fri Mar 02, 2007 7:57 am
Reply with quote

i mean to say i can do "READ' only. the manuals say, if a file is defined with shareoptions(3,3), we should be able to do update, delete, add etc of records in the cics region. But i am not able to do any of these.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Mar 02, 2007 8:22 am
Reply with quote

Hello,

Is this a test file that only you will be using?

If it is a shared file, someone/something else may have it. You might be able to do "dirty" reads, but not be able to do any kind of update.
Back to top
View user's profile Send private message
ranjani
Warnings : 1

New User


Joined: 25 Oct 2006
Posts: 13

PostPosted: Fri Mar 02, 2007 8:32 am
Reply with quote

this is a test file which i am only using
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Mar 02, 2007 8:36 am
Reply with quote

Hello,

What happens if you try to update this file in batch?
Back to top
View user's profile Send private message
ranjani
Warnings : 1

New User


Joined: 25 Oct 2006
Posts: 13

PostPosted: Fri Mar 02, 2007 8:57 am
Reply with quote

in Batch, it is successful...only through CICS, it fails
Back to top
View user's profile Send private message
Mickeydusaor

Active User


Joined: 24 May 2006
Posts: 258
Location: Salem, Oregon

PostPosted: Fri Mar 02, 2007 8:57 pm
Reply with quote

What is the FCT set to for this file.???
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 02, 2007 11:17 pm
Reply with quote

At the time of the open, what is displayed on the console log? There should be something like these: DFHFC0952 or DFHFC0955 or something else. That will give you your answer.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CICS

 


Similar Topics
Topic Forum Replies
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Using API Gateway from CICS program CICS 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top