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

Is comma will come within the literal?


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

New User


Joined: 12 Jan 2006
Posts: 3
Location: Chennai

PostPosted: Fri Jan 13, 2006 5:17 pm
Reply with quote

Is the following valid VS-COBOL-II statemnet?

MOVE 'A,B,C,D' TO B .
MOVE 'A-B-BC-D' TO B .
MOVE 'A/B/C/D' TO B .
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Jan 13, 2006 7:13 pm
Reply with quote

Quote:
Is the following valid VS-COBOL-II statemnet?

Yeah those are valid indeed, provided B is a properly defined Variable.... icon_wink.gif

But my dear friend.... These statements are moving a string, which is in between two quotes, to variable B... Which I am sure not the case you were looking for. And if you remove quotes from the string it is not a valid MOVE statement.

Regards,

Priyesh.
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 Creating additional seqnum/Literal wh... DFSORT/ICETOOL 4
No new posts Add Comma to each record until find t... DFSORT/ICETOOL 6
No new posts Removing Extra Spaces in a comma sepa... DFSORT/ICETOOL 3
No new posts Sortcard to put comma after particula... DFSORT/ICETOOL 21
No new posts Reformatting the input with leading z... DFSORT/ICETOOL 3
Search our Forums:

Back to Top