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

Error IEC161I 052(009,XXXRS00)-084 while trying to write


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amitc23

New User


Joined: 05 Nov 2014
Posts: 95
Location: India

PostPosted: Wed Oct 12, 2016 5:00 pm
Reply with quote

Hi

I am trying to write into a VSAM dataset which has three associated Alternate Indexes, the write is not getting completed.

When I close this dataset on CICS and try to edit thru file-aid , I get the following error:

IEC161I 052(009,XXXRS00)-084

I loaded the dataset with 1 record (all low-values) once but after that getting this error.

Any suggestions please.

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Oct 12, 2016 5:05 pm
Reply with quote

read the manuals and take the actions suggested
Back to top
View user's profile Send private message
amitc23

New User


Joined: 05 Nov 2014
Posts: 95
Location: India

PostPosted: Wed Oct 12, 2016 5:17 pm
Reply with quote

Hi Enrico

Thanks for reply. I did what manual was saying. I initialized dataset with low-values. It says that dataset may be opened by other user. But this is working fine in another CICS region , with the same code, where I don't have Close/Open statement . If it would have been batch , I would have deleted/defined/repro the dataset. When I close this in CICS region, and try to edit through File-Aid , it gives VSAM OPEN ERROR with above code.

Can you please suggest some more in this ?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Oct 12, 2016 5:28 pm
Reply with quote

You have to be careful when working with clusters with AIXes defined over them

did You rebuild the alternate indexes after the reload ?

do You have the UPGRADE clause in the AIX definition ?
Back to top
View user's profile Send private message
amitc23

New User


Joined: 05 Nov 2014
Posts: 95
Location: India

PostPosted: Wed Oct 12, 2016 5:32 pm
Reply with quote

I defined this dataset through file-aid.Loaded a record with low-values thrugh edit. Defined three alternate indexes. Defined the paths and then built the indexes, all through file-aid.

Upgrade is 'Y' in this case.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 12, 2016 8:39 pm
Reply with quote

The manual is pretty clear about the 052 sfi code 009:
Quote:
SUBTSKMS - First open of a data set, not connecting, OUTPUT or DISP=OLD, SHR=1,x. Cannot get exclusive control of the I resource. Another ACB is already open to the data set.
XXXRS00 is the name of the first job that caused the SHAREOPTION conflict -- have you investigated what is going on with this job?
Back to top
View user's profile Send private message
Kerry Ropar

New User


Joined: 14 Sep 2016
Posts: 25
Location: Australia

PostPosted: Thu Oct 13, 2016 5:11 am
Reply with quote

amitc23 wrote:
But this is working fine in another CICS region , with the same code, where I don't have Close/Open statement .


Seniors please correct me, we do not place explicit open/close commands in CICS modules. Instead of having control section, we let FCT entry and CICS to manage it.
Back to top
View user's profile Send private message
Kerry Ropar

New User


Joined: 14 Sep 2016
Posts: 25
Location: Australia

PostPosted: Thu Oct 13, 2016 5:23 am
Reply with quote

amitc23 wrote:
But this is working fine in another CICS region


Below from IBM manuals:

Quote:
SHAREOPTIONS (2 3) is specified for the file. This means only one job can open the dataset for update in a single MVS image and full sharing is allowed for separate MVS images.

In the working case, where CICS and the batch job are in separate MVS images, it is the second part of SHAREOPTIONS (the 3) that is in effect. This option allows full sharing. In the failing case, where CICS and the batch job are in the same MVS image, it is the first part of SHAREOPTIONS (the 2) that is in effect. The 2 only allows one job to open the dataset for update. But, both CICS and the batch job were attempting to open the file for update.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Thu Oct 13, 2016 10:11 pm
Reply with quote

Quote:
Seniors please correct me, we do not place explicit open/close commands in CICS modules. Instead of having control section, we let FCT entry and CICS to manage it.
That is just right.

IEC161I (return code 052)
If you don't find it from manuals or here ,what to do then I would suggest you sending an email to your site: storage Admin group about the err.
Back to top
View user's profile Send private message
amitc23

New User


Joined: 05 Nov 2014
Posts: 95
Location: India

PostPosted: Thu Oct 13, 2016 10:50 pm
Reply with quote

That's correct Rohit. I removed handle condition from the command and I got a AFDK abend which means some problem in the file definition related to LSR pool or with isolate option in transaction definition. Sent it to CICS support team.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3048
Location: NYC,USA

PostPosted: Thu Oct 13, 2016 10:56 pm
Reply with quote

Quote:
Sent it to CICS support team
,That's the right step you took.
CICS abend - AFDK
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top