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

Checking a job status and perform action on result found


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

New User


Joined: 09 Oct 2007
Posts: 4
Location: Hyderabad

PostPosted: Thu Oct 25, 2007 11:04 am
Reply with quote

Hi,


Can someone give me a code that checks a job status and then depending on the status performs some actions ( More like a IF -THEN- ELSE format)?
icon_confused.gif

Thanks a lot in advance.
Back to top
View user's profile Send private message
Aaru

Senior Member


Joined: 03 Jul 2007
Posts: 1287
Location: Chennai, India

PostPosted: Thu Oct 25, 2007 11:15 am
Reply with quote

angel,

Quote:
Can someone give me a code that checks a job status


By JOb status are you referring to the CC (condition code)? or you want to check whether the job is under execution or not ?
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Oct 25, 2007 11:18 am
Reply with quote

I can't "give you a code", but I can tell you that this is achievable through REXX. Please search the forum for batch SDSF.

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

New User


Joined: 09 Oct 2007
Posts: 4
Location: Hyderabad

PostPosted: Thu Oct 25, 2007 11:43 am
Reply with quote

Thanks ofer71...I was looking for options other than REXX...if accessing CA7 with JCL doesnt help ...I will go for REXX...Will have to study REXX from scratch since I am not aware of it.

Hi AARU,

I want to whether the job is under execution or not on CA7 but through a JCL which when submitted prints out the status of job and perform a action according to the status.
By code I mean the JCL code\Command not Condition code.

Thanks for replying
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 How I Found a Bug in a FORTRAN Compiler All Other Mainframe Topics 4
No new posts Job completes in JES, but the status ... IBM Tools 1
No new posts Use of Perform Thru Exit COBOL Programming 6
No new posts first column truncated in search result IBM Tools 13
No new posts SDSF like solution in EJES (store com... All Other Mainframe Topics 4
Search our Forums:

Back to Top