MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Usage of Comma preceeding a destination variable

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Tue Nov 08, 2005 2:18 am    Post subject: Usage of Comma preceeding a destination variable Reply with quote

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

Code:
MOVE X TO ,Y


Or

Code:
IF X >= ,Y


Please let me know.
Back to top
View user's profile Send private message Send e-mail
Phantom
Data Mgmt Moderator
Data Mgmt Moderator


Joined: 07 Jan 2003
Posts: 1056
Topics: 91
Location: The Blue Planet

PostPosted: Tue Nov 08, 2005 2:53 am    Post subject: Reply with quote

Hmm....Never seen such a thing. Does it compile successfully ???

Thanks,
Phantom
Back to top
View user's profile Send private message
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Tue Nov 08, 2005 3:03 am    Post subject: Reply with quote

Quote:

Does it compile successfully ???


I think so Phantom.
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Nov 08, 2005 5:32 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vkphani
Intermediate


Joined: 05 Sep 2003
Posts: 483
Topics: 48

PostPosted: Tue Nov 08, 2005 5:59 am    Post subject: Reply with quote

Thanks Kolusu.

Even I have never seen this type of coding.
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group