IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is it possible to use space instead of comma in ADD


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
MKP

New User


Joined: 23 Aug 2006
Posts: 12
Location: Chennai

PostPosted: Wed Aug 30, 2006 5:49 pm
Reply with quote

Hi All,

In ADD is it possible to use space instead of using comma.

can i use
Quote:
ADD A B GIVING C
instead of using
Quote:
ADD A, B GIVING C.


IF so then what is the difference in using space rather than using comma between A and B.
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Wed Aug 30, 2006 10:50 pm
Reply with quote

I dont think that we can use space instead of coma in ADD verb

thanks
Back to top
View user's profile Send private message
DavidatK

Active Member


Joined: 22 Nov 2005
Posts: 700
Location: Troy, Michigan USA

PostPosted: Thu Aug 31, 2006 3:05 am
Reply with quote

MKP,

The use of the add forms 'ADD A, B GIVING C' and 'ADD A B GIVING C' are the same. The ',' comma is optional and used for ease of reading

Dave
Back to top
View user's profile Send private message
cobolunni

Active User


Joined: 07 Aug 2006
Posts: 127
Location: kerala,india

PostPosted: Thu Aug 31, 2006 9:37 am
Reply with quote

Dave you are right . i apologies for my mistake
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts Merge 2 lines based on Space from a S... DFSORT/ICETOOL 5
No new posts Allocated space calculation from DCOL... PL/I & Assembler 3
No new posts split a name based on space in ASM PL/I & Assembler 9
No new posts Adding space to a dataset - getting D37 ABENDS & Debugging 10
Search our Forums:

Back to Top