Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Checking a job status and perform action on result found

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Checking a job status and perform action on result found
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: 1288
Location: Chennai, India

PostPosted: Thu Oct 25, 2007 11:15 am    Post subject: Reply to: Checking a job status and perform action on result
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: 2360
Location: Israel

PostPosted: Thu Oct 25, 2007 11:18 am    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Record Not found in AlX but record re... mukun264 COBOL Programming 7 Fri Mar 24, 2017 9:28 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts scheduling between OPC and TWS give u... nsbl IBM Tools 3 Sun Mar 12, 2017 5:35 pm
No new posts Row not found Sql error GaganGarg DB2 7 Tue Mar 07, 2017 6:29 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us