| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| nadh Intermediate
 
 
 Joined: 08 Oct 2004
 Posts: 192
 Topics: 89
 
 
 | 
			
				|  Posted: Mon Oct 24, 2005 9:12 am    Post subject: How to check dataset status? |   |  
				| 
 |  
				| Hi, 
 I have one job with 2 steps. In first step i will execute one program which will create one dataset. In step 2, if the data set created in step 1 contains records in it , step 2 should be executed else no execution of step 2. How to check that the dataset created in step 1 contains records or not.
 
 Any solution please.
 
 Thanks
 Nadh.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Mon Oct 24, 2005 9:39 am    Post subject: |   |  
				| 
 |  
				| nadh, 
 You can set a return code in step creating dataset to issue a specific return code if it had written more than 1 record.  or else search the forum for "empty" and author "kolusu" and you will find many examples of checking for an empty file.
 
 Kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |