Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Is comma will come within the literal?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: Is comma will come within the literal?
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: 1452
Location: Chicago, IL

PostPosted: Fri Jan 13, 2006 7:13 pm    Post subject: Re: Is comma will come within the literal?
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Removing Extra Spaces in a comma sepa... Puspojit DFSORT/ICETOOL 3 Tue Sep 13, 2016 7:46 am
No new posts Sortcard to put comma after particula... sakrat DFSORT/ICETOOL 21 Mon May 11, 2015 8:20 pm
No new posts Reformatting the input with leading z... venkatprasana DFSORT/ICETOOL 3 Wed Jan 08, 2014 12:25 pm
No new posts Add comma to end of the record sun_job DFSORT/ICETOOL 2 Fri Dec 20, 2013 2:28 pm
No new posts need help in removing comma's in 70 b... ravi243 PL/I & Assembler 13 Sun Nov 10, 2013 9:56 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us