Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hi,
There is a field called "value" which has to be incremented for every execution of job. I wanted to increment it and set to context variable permanently, so that the new value is used in next job execution.
Is this possible? If yes, Can anyone guide me doing this?
Thanks,
Meghana.
 fdenis
		
			fdenis
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 TRF
		
			TRF
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 fdenis
		
			fdenis
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 
					
				
		
hi Meghana,
since the requirement would not allow any variable creation within the job for such scenario , thus its better you go for counter value fetch from any database's table or from any file at the start of job and at the end of the job update that table or file with increment in its last value.
Regards
Chandra Kant
 
					
				
		
Is it the only possible way..?
Can't we store somewhere in our job..?
Thanks!
 
					
				
		
storing somewhere within the job means that variable needs to be created and initialized within the job and this will execute every time you run the job thus making it difficult to work as counter for job execution.
It would be better to use variable value from outside the job be it using file or table or tcontextload.
the flow could be read the value--> task --> update the value.
Regards
Chandra Kant
 
					
				
		
