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

Batch job abending while closing the online file to CICS


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

New User


Joined: 25 Nov 2009
Posts: 10
Location: India

PostPosted: Tue Dec 08, 2009 1:14 pm
Reply with quote

When the batch job is trying to close the online file to CICS region, the batch job is failing due to below reason:-

Code:
CAFC0364 AFCP2016 USING APPL. TABLE AFCT2016                               
CAFC0398 AFCP2016 DHIPG012,C,D,CCW100DV                                   
CAFC0807 AFCP2016 AFCTABLE = CICSP.CICPAAA1.CAFC.CNTLFILE                 
CAFC0399 AFCP2016     C        D  CCW100DV        (0000) NO ERRORS         
CAFC0399 AFCP2016                 CCW100DV WARNING(0225) ALREADY CLOSED   
CAFC0398 AFCP2016 DHIPG012,C,D,CCW110DV                                   
CAFC0807 AFCP2016 AFCTABLE = CICSP.CICPAAA1.CAFC.CNTLFILE                 
CAFC0399 AFCP2016     C        D  CCW110DV        (0000) NO ERRORS         
CAFC0399 AFCP2016                 CCW110DV WARNING(0225) ALREADY CLOSED   
CAFC0398 AFCP2016 DHIPG012,C,D,CCW120DV                                   
CAFC0807 AFCP2016 AFCTABLE = CICSP.CICPAAA1.CAFC.CNTLFILE                 
CAFC0399 AFCP2016     C        D  CCW120DV        (0000) NO ERRORS         
CAFC0399 AFCP2016                 CCW120DV WARNING(0225) ALREADY CLOSED   


Could anyone let me know the reason behind this and the possible way to fix this.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Tue Dec 08, 2009 3:01 pm
Reply with quote

As far as I see it, the message is pretty clear ("Already Closed"). What is it that you didn't understand about this message?

O.
Back to top
View user's profile Send private message
Harry_harran

New User


Joined: 25 Nov 2009
Posts: 10
Location: India

PostPosted: Tue Dec 08, 2009 3:22 pm
Reply with quote

I too thought the same, but it was not. It was open to CICS and when I restarted the job from the same step, it went fine.

Could you please help me out whether this could happen in any other case.
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: Tue Dec 08, 2009 9:51 pm
Reply with quote

Hello,

Quote:
Could you please help me out whether this could happen in any other case.
If this happened, it must be possible. . . If this happened once, it can happen again (if the exact same conditions exist). . .

Is it possible that there was additional attempts to open/close the file in this time window? Is it possible that some other person/process was trying to do something similar at the same time?

I suggest you work with others and determine the exact sequence of everything that happened with the problem file and determine where the mis-step/out-of-sync process occurred.

From the little posted, it sounds like the process failed because the file was closed but on the re-start/re-run the file had been re-opened. . .
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Dec 08, 2009 9:54 pm
Reply with quote

is/are the files defined in CICS as autoopen?
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: Tue Dec 08, 2009 10:55 pm
Reply with quote

Have you contacted the product vendor for assistance? I think that would be the place to start since the vendor presumably knows more about their product than just about anybody else.
Back to top
View user's profile Send private message
valyk

Active User


Joined: 16 Apr 2008
Posts: 104
Location: South Carolina

PostPosted: Wed Dec 09, 2009 12:15 am
Reply with quote

Have you tried this:

Code:
DHIPG012,C,DD,CCW100DV


IIRC, CAFC treats files as DD and datasets as D.
Back to top
View user's profile Send private message
Harry_harran

New User


Joined: 25 Nov 2009
Posts: 10
Location: India

PostPosted: Wed Dec 09, 2009 4:50 pm
Reply with quote

Thanks to everyone for your valable posts... icon_smile.gif icon_smile.gif icon_smile.gif icon_smile.gif
It has been resolved. The above mentioned error occured as it has been closed by anothe user.

Now am getting a new error. Could you please help me out with this...? icon_question.gif icon_question.gif

Code:
AFCP2016 DHIPG012,C,D,CCW120DV                                           
AFCP2016 AFCTABLE = CICSP.CICPAAA1.CAFC.CNTLFILE                         
AFCP2016     C        D  CCW120DV        (0235) FILES NOT CLOSED: ACTIVE 
AFCP2016     C        D  CCW120DV ERROR  (0256) CLOSE STILL IN PROGRESS   
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: Wed Dec 09, 2009 9:58 pm
Reply with quote

Hello,

I suspect that we won't be much help. . .

The process(es) appear to be out of control. Getting things under control will be completely site-specific.

Why are there multiple close/open/batch/online popping in and out?
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 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
No new posts Access to non cataloged VSAM file JCL & VSAM 18
Search our Forums:

Back to Top