View previous topic :: View next topic
|
Author |
Message |
Jeya Raj
New User
Joined: 14 Jan 2007 Posts: 33 Location: USA
|
|
|
|
Hi,
I'm trying to learn more about EXCP and SERV in JES2 job log. I hope EXCP is the count of read and write of records. I tried to get more info, but couldn't find the simple explanation.
What do they mean in a job stat?
Does EXCP and SERV count increase when the program tries to write records in a unopened file? or When a program goes into loop , do the count increase?. I really appriciate any help on this topic.
Thank you. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
|
|
EXCP:
A count of the number of blocks of data transferred. The EXCP is an I/O subsystem driver. To request the movement of data, either the access method or the user program presents information about the operation to the EXCP processor by issuing the EXCP macro instruction. EXCP translates this information into a format understandable to the channel subsystem and invokes the I/O supervisor (IOS).
SMF maintains counts of these EXCP requests. An EXCP count is a block of data transferred. However, both a 16-byte block and a 32756-byte block count as one EXCP. Also, the I/O access method or I/O driver must count blocks transferred and pass that count to the SMF count routine.
You can get more here,
publib.boulder.ibm.com/tividd/td/perfrpt/SH19-6818-05/en_US/HTML/drlm9m58.htm
Also you can find more on SERV and EXCP here too,
pic.dhe.ibm.com/infocenter/zos/v1r12/index.jsp?topic=%2Fcom.ibm.zos.r12.hasa300%2Fj2log.htm |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
EXCP are related to the count of records read and written, but are not -- as explained elsewhere -- directly translatable to the number of records read / written. Service units are a measure of the work done by the system.
When a program goes into a loop, whether the EXCP count increases depends upon what is in the loop (no read or write statements, no EXCP are done); the service units will increase in a loop since the system is doing work. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
A co-worker once came to me for help because he thought his job was running too slow and thought it might be due to a large number of "Exception counts". I had no idea what he was talking about so I told him to take another look at his program and tell me what kind of exception conditions it was expecting. His eventual response made no sense, so I asked him to show me how he knew that the "exception count" was excessive. I nearly fell out of my chair laughing when he pointed to the EXCP count in his joblog. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Yup, as recently as last week someone here (client) referred to EXCP as "exception count". That is what they were told many years ago (20+) and most have never been "out in the real world" so they don't know any better.
They do understand that this is a measure of i/o . . . |
|
Back to top |
|
|
Jeya Raj
New User
Joined: 14 Jan 2007 Posts: 33 Location: USA
|
|
|
|
Thank you so much for you replies.
I never checked EXCP and SERV before when I ran the jobs( I do mainly CICS programming). All I check was the CPU and elapsed time. Now I have an issue and I need to find out about the EXCP counts.
Here is my issue scenario:
I ran a job in TEST and PROD with SAME input file.
Here is my job model:
//JOB1234 JOB (1234),CLASS=’A’
//STEP01 EXEC PGM=MTPBATCH --> close OUTFILE E.F.G
//STEP02 EXEC PGM=PROGRAM1
//INFILE DD DSN=A.B.C, DISP=SHR --> has about 290K records in it
//OUTFILE DD DSN=E.F.G,DISP=OLD
//*
In TEST, the job ran ok and the timing was normal. But when I ran the same job in PROD, it had an issue.
On STEP01, the file was not closed(IEF099I JOB JOB1234 WAITING FOR DATA SETS) and STEP02 was waiting for the OUTFILE dataset. After 10 mins of CPU time, I killed the job. When I checked the JES2 Log, I saw the EXCP count as 30000k and SERV as 43454K. Below are the STAT from both the TEST and PROD
In TEST run the EXCP and SERV count as below
The test run had 833K EXCP and 13768K SERV
CPU time 3.23 mins
In PROD run when the job was killed the EXCP and SERV count as below
The PROD run had 30298K EXCP and 43488K SERV
CPU time 10.53 mins
My questions are :
1. Why the EXCP count was so high when I ran the same job in PROD when it didn’t write any records into the OUTFILE? (Hope read count won’t be that much since the INPUT file is same in both TEST and PROD)
2. How important is EXCP count while running a job?
3. Does CPU time play a role in EXCP count?
Appreciate your help.
PS: The job ran fine in previous runs. Sorry for the lengthy post...
Thank you. |
|
Back to top |
|
|
steve-myers
Active Member
Joined: 30 Nov 2013 Posts: 917 Location: The Universe
|
|
|
|
- The EXCP term refers to the OS/360 macro used to initiate an I/O. Most of the time one EXCP is equivalent to one physical record, but clever programming can read or write several physical records with one EXCP macro. Since you refer to something reported in the JES job log, the data presumably was extracted from an SMF type 30 record, probably by the IEFACTRT user exit. Without the the SMF data, and possibly the code for the exit routine, it is impossible to validate the numbers.
- EXCP count can be quite important.
- EXCP uses a surprising amount of CPU time to prepare the system to do your I/O.
- The elapsed time to perform the I/O can be quite long. This has been discussed elsewhere in this forum.
- As I mentioned before, EXCP can be more CPU intensive than one might expect, and every EXCP usually results in execution of a WAIT macro to pause execution until the I/O completes. In other words, more CPU usage.
|
|
Back to top |
|
|
Rohit Umarjikar
Global Moderator
Joined: 21 Sep 2010 Posts: 3053 Location: NYC,USA
|
|
Back to top |
|
|
Jeya Raj
New User
Joined: 14 Jan 2007 Posts: 33 Location: USA
|
|
|
|
Thanks Rohit for the extra info. The info was very helpful.
Regards,
Jeyaraj |
|
Back to top |
|
|
Pete Wilson
Active Member
Joined: 31 Dec 2009 Posts: 581 Location: London
|
|
|
|
You didn't say if this was a VSAM file or not, but if it is, you say at one point the file wasn't closed, so perhaps it had to do an implicit verify when you opened it for output. The verify reads the file sequentially in this case to find the correct high use RBA so would increase the EXCP count. |
|
Back to top |
|
|
|