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

CICS Log


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

Active User


Joined: 24 Feb 2004
Posts: 131
Location: Chennai

PostPosted: Thu Jul 03, 2014 11:51 am
Reply with quote

Hi,

I would like to know about how to read CICS log. generally we go and read the MSG LOG to find out if any error is written there.

But in general, how to read the log and pinpoint the exact errors. there may be storage violations, Asra, AICA and many other abends with tranid.
but if something is not working in online regions then how can we relate and pinpoint the errors from the CICS Log.

Is it always we need to refer MSGLOG alone ? Please let me know.

Regards
KK
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: Thu Jul 03, 2014 7:42 pm
Reply with quote

Your question is so broad it is meaningless. The easiest, and most common, way to read the log is WITH YOUR EYES! Look at the log, find error messages, interpret them, and proceed.

If you want to read the log with a program, the first question becomes ... WHY? The log is open by CICS until the CICS region goes down, so using it for post-processing is possible as long as it is copied to a data set. But since the region is not active by this time, any errors uncovered by the log are not going to be helpful for that CICS execution.

And you do NOT want to attempt to read the log while CICS is running. First, the log records may -- or may not -- be written by CICS in a timely manner, and second, you have to be able to access the data across address spaces (unless you want to read the log from a program running in the CICS region). This is not a simple matter, even though it is technically possible.

Furthermore, if your site has one of the CICS monitoring tools such as Omegamon or Mainview, your site already can monitor the logs.
Back to top
View user's profile Send private message
karthi_ind

Active User


Joined: 24 Feb 2004
Posts: 131
Location: Chennai

PostPosted: Fri Jul 04, 2014 9:39 am
Reply with quote

Robert,

I am talking about the errors during the business time, so the region will be active. Also we can refer the log in the previous day region Job in SAR , right ?

I asked about identifying the exact problems with respect to online tran id's and other CICS abends. I never used omegamon or mainview.
will it be helpful for our analysis.

what about abend-id, also we have different regions like test, sit, uat and prod. based on the request, we may need to analyse and find out the error in the respective regions.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Jul 04, 2014 1:17 pm
Reply with quote

Quote:
if your site has one of the CICS monitoring tools such as Omegamon or Mainview


You don't have to have experience, but if those tools are present ask the CICS or Automation people.

When i was working with SA/390, me and my peers where working closely together with the CICS people to trap all relevant messages and create for instance restarting scripts or sending alerts to whatever people concerned with CICS, IMS and other online systems.
Back to top
View user's profile Send private message
karthi_ind

Active User


Joined: 24 Feb 2004
Posts: 131
Location: Chennai

PostPosted: Fri Jul 04, 2014 2:04 pm
Reply with quote

Thanks Peter.

Can't we use those tools for our internal analysis.
I know we can see different region abends thru abend-aid. but
the problem at my shop is the access. I dont have access to DDIO file to view the details.

yes, we receive the mails from CICS admin with SVC Dump to anlyse for few abends. But in general, if we do unit testing of our modules, how can we identify and spot the errors. I know with our tranid, the message will be displayed.

Is there anything else or more info can be retrieved from Log. generally how peopl will do analysis for CICS abends/errors.


Regards
KK
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


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

PostPosted: Sun Jul 06, 2014 9:26 am
Reply with quote

To perform a unit testing there are tools like interest which enables you to perform line by line execution of your programs. However if you don't have such tools then you can add displays to the required code and check the output in cics job . Why do need to see the log? Also when there is a exceptional error then usually sufficient information needs to be displayed while coding.
Back to top
View user's profile Send private message
karthi_ind

Active User


Joined: 24 Feb 2004
Posts: 131
Location: Chennai

PostPosted: Sun Jul 06, 2014 12:45 pm
Reply with quote

Thanks Rohit.

yes by using intertest we can see the line by line execution.
sometimes what happens is in production there might be some error in the screen and user want to know the exact problem.

If we replicate the same scenario in test regions it will work fine. so those problems might be environment related or deadlock or any other abends.
so to analyse further we need to see the log the execution time of tran id's, abends or deadlocks.

so for such reason we need to refer CICS log only. Also all the activities performed in the region can be tracked in log. in case of storage violation errorwe may need to refer CICS log. I want to know in that perspective.

Regards
Karthik
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


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

PostPosted: Mon Jul 07, 2014 8:57 am
Reply with quote

Okay, so for this your site support or a cics admin will help to provide a dump and then it will be easy to find the issue. Also over a web and on this forum there are many threads which will give an idea as to how it works. So if you have any failed trx and dump or log then you can share and then a help can be easily provided.
Back to top
View user's profile Send private message
karthi_ind

Active User


Joined: 24 Feb 2004
Posts: 131
Location: Chennai

PostPosted: Mon Jul 07, 2014 10:04 am
Reply with quote

Thanks Rohit.
Sure, I will publish those details whenver I face such problem.

Regards
Karthik
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 Using API Gateway from CICS program CICS 0
No new posts Calling an Open C library function in... CICS 1
No new posts How to 'Ping' a CICS region in JCL CICS 2
No new posts Parallelization in CICS to reduce res... CICS 4
No new posts How to avoid duplicating a CICS Web S... CICS 0
Search our Forums:

Back to Top