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

Job monitoring automation : SPACE Abend


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
swapnilushinde

New User


Joined: 17 Mar 2009
Posts: 30
Location: Bangalore.India

PostPosted: Tue Jun 09, 2009 6:25 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 09, 2009 6:35 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 09, 2009 6:44 pm
Reply with quote

/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
View user's profile Send private message
swapnilushinde

New User


Joined: 17 Mar 2009
Posts: 30
Location: Bangalore.India

PostPosted: Tue Jun 09, 2009 6:59 pm
Reply with quote

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... icon_biggrin.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 09, 2009 7:02 pm
Reply with quote

Ask your manager to get you access.
Believe me, it will save you lots and lots of time.
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 Jun 09, 2009 7:04 pm
Reply with quote

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
View user's profile Send private message
swapnilushinde

New User


Joined: 17 Mar 2009
Posts: 30
Location: Bangalore.India

PostPosted: Tue Jun 09, 2009 7:15 pm
Reply with quote

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...
icon_smile.gif
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 Jun 09, 2009 7:44 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Jun 09, 2009 7:58 pm
Reply with quote

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
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Tue Jun 09, 2009 8:11 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Jun 09, 2009 8:51 pm
Reply with quote

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
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jun 10, 2009 2:50 pm
Reply with quote

Quote:
expat, what will they think of next? baked ground wheat cut into manageable pieces?

WOW, that's the best idea since sliced bread icon_biggrin.gif
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts ISAM and abend S03B JCL & VSAM 10
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Monitoring production job progress. N... JCL & VSAM 4
Search our Forums:

Back to Top