View previous topic :: View next topic
|
Author |
Message |
swapnilushinde
New User
Joined: 17 Mar 2009 Posts: 30 Location: Bangalore.India
|
|
|
|
Hello
I am trying to automate the job monitoring. I am just copying the JESYMSG in DASD and then further processing it using SORT and SAS to create report. I am handling all User abends and system abends but cannot manage to handle SPACE abends, because they stop the job abruptly.
If job is getting abended or completed successfully it will run the XSYSMSG step but if any SPACE abend occurs in above steps(STEP1,2,3) it is not going to execute the jobmonitoring step.
As SPACE abend stops job abruptly it wont proceed further but I want to run the XSYSMSG step even for SPACE abend.
Please guide me more on this...
Code: |
//STEP1 EXEC
//STEP2 EXEC
//STEP3 EXEC
// IF ABEND OR NOT ABEND THEN
//XSYSMSG EXEC PGM=EJESLNK,REGION=64M
//EJESEXT DD DSN=DASD_DATASET,
// UNIT=WORK,SPACE=(TRK,1),DCB=(LRECL=150,RECFM=VB),
// DISP=(,CATLG,DELETE)
//EJESOUT DD SYSOUT=*,RECFM=FB,LRECL=240
//EJESIN DD DATA
JNAME JOBBAME;SORT TIME D;STATUS
F JOBNAME FIRST
:S
F JESYSMSG
:E
/*
// ENDIF
|
2. One more question is there ONLY space abend that stops the job abruptly? or any other abends are also there? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
2. One more question is there ONLY space abend that stops the job abruptly? or any other abends are also there? |
There are hundreds of possible abends documented in the SYSTEM CODES manual in the Messages and Codes bookshelf. Most of them will flush the remaining steps in the job (or in your non-standard terminology stops the job abruptly). |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
/RANT ON
I bet that your shop has a capacity / performance group who already collect this information and could easily give you the report, or at least the source data to produce the report with SAS.
Why do people think that they are the only people in the world that require this information.
Go talk to your capacity / performance / sysprogs and save yourself hours/days/weeks/months of duplicated effort.
Applications to the wheel reinvention society can be obtained at ..........
/RANT OFF |
|
Back to top |
|
|
swapnilushinde
New User
Joined: 17 Mar 2009 Posts: 30 Location: Bangalore.India
|
|
|
|
Hi expat
Thanks for your suggestion.. But I have already tried with that access. For security reasons we cannot get access to these things.. Thats why I am trying this different way..
Furthermore we don't have problem in duplication of information for such automation... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Ask your manager to get you access.
Believe me, it will save you lots and lots of time. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Quote: |
For security reasons we cannot get access to these things. |
says you don't know what tools they use while
Quote: |
Furthermore we don't have problem in duplication of information for such automation. |
this says you do know what tools are used and you're not going to reinvent the wheel. I don't think you really have any idea about the site's tools. You should see if the decision not to grant you access to the available tools can be changed, since otherwise you're going to spend a lot of time doing something that doesn't need to be done. Duplicating existing job monitoring systems could easily run multiple thousands of hours and require a very deep understanding of a variety of system control blocks and mechanisms. Not a good investment considering what's already available. |
|
Back to top |
|
|
swapnilushinde
New User
Joined: 17 Mar 2009 Posts: 30 Location: Bangalore.India
|
|
|
|
Hi Robert and Expat
Thanks again for your suggestions.. I completely agree with what you say but as i told I have advised to do it by own and the access request was rejected long back... I have already completed the further SORT and SAS jobs to extract only return code. Now I am facing problem for SPACE abend only.. Thats why I want to complete it at least for my learning !!!
Once again thanks...
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
You talk about the SPACE abend ... what about S0C7, S0C4, S806, S80A, S1FC, and so forth? x37 are not the only abends that stop the batch job. |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Hey Robert, I hear they've brought out a new fangled wheel that's a sort of round shape and a lot smoother.
Mmmmmmmmm, think I'll stick with the square one though and then try and get a smooth ride by chipping bits off.
Mournful sighhhhhhhhhhhhhhhhhhhhhhhhhhhhhh |
|
Back to top |
|
|
Bill Dennis
Active Member
Joined: 17 Aug 2007 Posts: 562 Location: Iowa, USA
|
|
|
|
Robert Sample wrote: |
You talk about the SPACE abend ... what about S0C7, S0C4, S806, S80A, S1FC, and so forth? x37 are not the only abends that stop the batch job. |
Most ABENDs will allow a COND=EVEN step to run to satisfy the OP requirement. I believe OP refers to SPACE REQUESTED NOT AVAILABLE and similar errors that flush the job (not real ABENDs). Those cannot be tracked in this method.
Parsing SMF data is the only reliable method to see all types of errors. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
expat, what will they think of next? baked ground wheat cut into manageable pieces?
Bill: I hadn't thought of those SPACE REQUESTED NOT AVAILABLE errors -- and you're right; about the only way to find them (without using CA-7 or similar product to monitor jobs) would be to review the SMF data. On the other hand, somebody says "SPACE abend" for a topic, I'm thinking SB37, SD37, SE37 .... |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
expat, what will they think of next? baked ground wheat cut into manageable pieces? |
WOW, that's the best idea since sliced bread |
|
Back to top |
|
|
|