| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| vkphani Intermediate
 
  
 Joined: 05 Sep 2003
 Posts: 483
 Topics: 48
 
 
 | 
			
				|  Posted: Tue Nov 08, 2005 2:18 am    Post subject: Usage of Comma preceeding a destination variable |   |  
				| 
 |  
				| Hi, 
 Does any one know the usage of a comma preceding a destination variable in COBOL statements? One of my friends asked this question.
 
 For eg
 
 
 
 Or
 
 
 
 Please let me know.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| Phantom Data Mgmt Moderator
 
  
 
 Joined: 07 Jan 2003
 Posts: 1056
 Topics: 91
 Location: The Blue Planet
 
 | 
			
				|  Posted: Tue Nov 08, 2005 2:53 am    Post subject: |   |  
				| 
 |  
				| Hmm....Never seen such a thing.  Does it compile successfully ??? 
 Thanks,
 Phantom
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| vkphani Intermediate
 
  
 Joined: 05 Sep 2003
 Posts: 483
 Topics: 48
 
 
 | 
			
				|  Posted: Tue Nov 08, 2005 3:03 am    Post subject: |   |  
				| 
 |  
				|  	  | Quote: |  	  | Does it compile successfully ???
 
 | 
 
 I think so Phantom.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| kolusu Site Admin
 
  
 
 Joined: 26 Nov 2002
 Posts: 12394
 Topics: 75
 Location: San Jose
 
 | 
			
				|  Posted: Tue Nov 08, 2005 5:32 am    Post subject: |   |  
				| 
 |  
				|  	  | Quote: |  	  | Does any one know the usage of a comma preceding a destination variable in COBOL statements? One of my friends asked this question.
 
 | 
 vkphani,
 
 I am not aware of any usage , but I gues the compiler assumes that you are moving to multiple variables or checking multiple variables.  But I would say it as bad coding.
 
 Kolusu
 _________________
 Kolusu
 www.linkedin.com/in/kolusu
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| vkphani Intermediate
 
  
 Joined: 05 Sep 2003
 Posts: 483
 Topics: 48
 
 
 | 
			
				|  Posted: Tue Nov 08, 2005 5:59 am    Post subject: |   |  
				| 
 |  
				| Thanks Kolusu. 
 Even I have never seen this type of coding.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  | 
	
		|  |