Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
File open failed - contention with batch job

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CICS
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    Post subject: File open failed - contention with batch job
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Wed Apr 09, 2014 4:36 pm    Post subject: Reply to: File open failed - contention with batch job
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    Post subject: Re: Reply to: File open failed - contention with batch job
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: 2504
Location: Atlanta, Georgia, USA

PostPosted: Wed Apr 09, 2014 11:39 pm    Post subject: Reply to: File open failed - contention with batch job
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    Post subject:
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

Senior Member


Joined: 21 Sep 2010
Posts: 1818
Location: NY,USA

PostPosted: Fri Jun 13, 2014 8:54 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CICS All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts VBS and VB, COBOL syntax is the same ... natt.sut COBOL Programming 3 Sun Nov 12, 2017 6:36 am
No new posts Updating data from one file to other!!! Vignesh Sid SYNCSORT 1 Mon Nov 06, 2017 2:42 pm
This topic is locked: you cannot edit posts or make replies. Need help how to pass the ESP variabl... Venkichaitu JCL & VSAM 12 Thu Nov 02, 2017 3:53 am
This topic is locked: you cannot edit posts or make replies. Comparing current time with the time ... arunsoods SYNCSORT 1 Mon Oct 30, 2017 4:07 pm
No new posts -502 Error - Cursor already open anand jeyapaul DB2 7 Sun Oct 29, 2017 4:22 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us