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

File open failed - contention with batch job


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

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Wed Apr 09, 2014 3:20 pm
Reply with quote

Dear All,

I am facing an issue regarding file open failed in CICS.
what happened as follows:

Batch afterhour processing completes, batch job using EXTI call CICS program to reset file status to CLOSED/ENABLE
ADRDSSU ran to backup files into tapes
Online transaction tried to open the file, but failed, the file status has been set to CLOSED/UNABLE
Below is the parameter we used in ADRDSSU

DUMP DATASET(INCLUDE(HLQ.FILE.NAME.** -
) -
) -
OUTDDNAME(ONSITE) -
TOL(ENQF) -
OPT(3) -
SHARE -
SPHERE

I am considering two solutions:
1. Set the files status to OPEN/ENABLED once afterhour processing completes, but my concern is whether using too much storage (buffer, data table, etc) in a short period will cause any issue? Or any potenical risk?

2. Reset the file status to CLOSED/ENABLE after ADRDSSU, there are too many files which I don't want to reset all of them, so is there any utility/job can check the file status in CICS, from that I can capture which file status is UNABLE, so I can create a job to automatically reset the file status.

Any suggestion is much appreicated.

Thanks in advance.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Apr 09, 2014 4:36 pm
Reply with quote

Setting the File to CLO/ENA would be fine, providing the FCT entry specifies Opentime : Firstref, which is the default, but ENA is the key.

In SDSF, under the CICS Job Name Sysout (MSGUSR), what error message are you seeing when an ENA and/or OPE is attempted?

Are you specifying SHROPTION(3) in the Delete/Define?

Any particular reason for this SHROPTION?
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Wed Apr 09, 2014 5:19 pm
Reply with quote

Bill O'Boyle wrote:
Setting the File to CLO/ENA would be fine, providing the FCT entry specifies Opentime : Firstref, which is the default, but ENA is the key.

In SDSF, under the CICS Job Name Sysout (MSGUSR), what error message are you seeing when an ENA and/or OPE is attempted?

Are you specifying SHROPTION(3) in the Delete/Define?

Any particular reason for this SHROPTION?


Thanks for your reply Bill.

The opentime is Firstref.
I have checked MSGUSER, but there is no error message for that file.
Shareoption is 3 too

DEFINE FILE(TEST1) GROUP(SECMEFF0)
DESCRIPTION(ACCOUNT ADDRESS INFORMATION)
DSNAME(TEST.TEST.TEST1) RLSACCESS(NO) LSRPOOLID(2)
READINTEG(UNCOMMITTED) DSNSHARING(ALLREQS) STRINGS(30)
REMOTESYSTEM(LSEF) REMOTENAME(TEST1) KEYLENGTH(24)
STATUS(ENABLED) OPENTIME(FIRSTREF) DISPOSITION(SHARE)
DATABUFFERS(31) INDEXBUFFERS(30) TABLE(NO) MAXNUMRECS(NOLIMIT)
UPDATEMODEL(LOCKING) LOAD(NO) RECORDFORMAT(F) ADD(YES)
BROWSE(YES) DELETE(NO) READ(YES) UPDATE(YES) JOURNAL(NO)
JNLREAD(NONE) JNLSYNCREAD(NO) JNLUPDATE(NO) JNLADD(NONE)
JNLSYNCWRITE(YES) RECOVERY(NONE) FWDRECOVLOG(NO)
BACKUPTYPE(STATIC)

Above is the FCT setup
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Apr 09, 2014 11:39 pm
Reply with quote

Looks like a fairly standard FCT entry.

Sometimes, LSR Pool definitions can burn you.

Make sure there are adequate buffers defined for the Data CI and Index CI (defined to the Cluster) in LSR Pool 2 or perhaps reassign this file to a different LSR Pool?
Back to top
View user's profile Send private message
cser_oxygen

New User


Joined: 25 Oct 2006
Posts: 33

PostPosted: Fri Jun 13, 2014 10:31 am
Reply with quote

Guys, just wondering anyone can suggest:
"is there any utility/job can check the file status in CICS, from that I can capture which file status is UNABLE, so I can create a job to automatically reset the file status. "
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


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

PostPosted: Fri Jun 13, 2014 8:54 pm
Reply with quote

Write a small program which does so...

But usually that is not necessary as during the start up of CICS region this is already been taken care. So as suggested by Bill,please take that information to CICS Admin and then find out what went wrong.
Back to top
View user's profile Send private message
Mickeydusaor

Active User


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

PostPosted: Fri Jun 13, 2014 9:04 pm
Reply with quote

In the process I setup I set the file status to CLOSED/DISABLED and
after the Backups are finished I reset file status to CLOSED/ENABLE
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 FTP VB File from Mainframe retaining ... JCL & VSAM 1
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 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