| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| jimmy_augustine Beginner
 
 
 Joined: 23 Jun 2004
 Posts: 32
 Topics: 13
 
 
 | 
			
				|  Posted: Tue Jul 13, 2004 10:35 am    Post subject: Regarding S0C7 Error |   |  
				| 
 |  
				| Hi Folks, It is known that S0C7 is due to data exception. But which type of data type create this S0C7? Is it only by COMP-3 fields? Then what could be the error when a program tries to do some arithmetic operation of invalid values in simple numeric fields/COMP type of fields?
 Any help would be greatly appreciated.
 Thanks a million
 Jimmy
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Tue Jul 13, 2004 10:43 am    Post subject: |   |  
				| 
 |  
				| Jimmy, 
 Possible causes for S0C7 abend include:
 
 
 
 working storage not initialized                       
bad data, should check data for errors garbage in a field being tested or displayed 'move zeroes' to group level is display, had sublevels that were not
period missing after imperative statements within AT END clause                           
binary field in an arithmetic operation is not large enough to accept result 
 
 
 Kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| jimmy_augustine Beginner
 
 
 Joined: 23 Jun 2004
 Posts: 32
 Topics: 13
 
 
 | 
			
				|  Posted: Tue Jul 13, 2004 12:05 pm    Post subject: |   |  
				| 
 |  
				| Kolusu, That is fine. But I am sorry, my question is 'What kind of data type causing S0C7?. Would it be only COMP-3 data type or all numeric data type which contain invallid data cause S0C7?'
 
 I hope my question is clear..Sorry for the confusion caused:(
 Jimmy
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Tue Jul 13, 2004 12:08 pm    Post subject: |   |  
				| 
 |  
				| jimmy_augustine, 
 Did you read the 4th item in my post?
 
 Kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| jimmy_augustine Beginner
 
 
 Joined: 23 Jun 2004
 Posts: 32
 Topics: 13
 
 
 | 
			
				|  Posted: Wed Jul 14, 2004 3:33 am    Post subject: |   |  
				| 
 |  
				| Kolusu, Yes I did. So can I conclude that S0C7 is not strictly bounded for COMP-3  fields only, right?
 Regards
 Jimmy
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| slade Intermediate
 
 
 Joined: 07 Feb 2003
 Posts: 266
 Topics: 1
 Location: Edison, NJ USA
 
 | 
			
				|  Posted: Wed Jul 14, 2004 11:51 am    Post subject: |   |  
				| 
 |  
				| Hi Jimmy, 
 I have a test pgm that I take with me wherever I go ( except vacation
  ).  I use it whenever I have ques like the one you posed. 
 As an example, I'd insert the following:
 
 In WS:
 
  	  | Code: |  	  | 01 num-data pic 9(04).
 01 alpha-data redefines num-data pic x(04).
 
 | 
 In PD:
 
  	  | Code: |  	  | move 'abyz' to alpha-data
 add 1 to num-data
 
 | 
 Then I'd let the good times roll.
 
 And BINGO!! may ques would be answered ... and Kolusu's sleep wouldn't be disturbed.
 
 All kidding aside, that test pgm is a handy little tool.
 
 Regards, Jack.
 
 P.S.  My apologies for the cliche's.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |