| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| YSMVS Beginner
 
  
 Joined: 19 May 2004
 Posts: 51
 Topics: 25
 Location: My House
 
 | 
			
				|  Posted: Fri Jun 03, 2005 9:28 am    Post subject: ALARM Jobs. |   |  
				| 
 |  
				| Hi all, 
 We want to set up some Alarm jobs in CA7. Can someone throw some light on how to set this. The purpose of this job is to abend when certain important jobs are NOT completed by a certain time.
 
 Thanks.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Fri Jun 03, 2005 9:58 am    Post subject: |   |  
				| 
 |  
				| Ysmvs, 
 Schedule a JOb in CA-7 to run daily at a specified time ,which will read the completion times of your important jobs and abend if your important job hasn't completed within the range.
 
 Check this link which explains about reading the job completion times from ca-7 database in batch mode.
 
 http://www.mvsforums.com/helpboards/viewtopic.php?t=1096&highlight=lprrn
 
 The output from the job will be as follows.
 
 
  	  | Code: |  	  | JOB    CA-7 DEADLINE   START   DUE-OUT  COMPLETE    CPU    SCH ENTRY JOB
 NAME   JOB# DDD/HHMM DDD/HHMM DDD/HHMM YYDDD/HHMM SPEC/RUN ID  MODE STATUS
 
 JOBXXXXX 6857 154/2316 154/0050 154/2330 05154/0056 ALL-C13A 001 AUTO C-C0000
 
 | 
 
 So code a small pgm to read the above output and figure out if the job completed on time.
 
 Hope this helps...
 
 Cheers
 
 kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |