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
 

 

which is more efficient STRING or MOVE statment

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
gaurav jain

New User


Joined: 08 Sep 2005
Posts: 1

PostPosted: Thu Sep 08, 2005 5:58 pm    Post subject: which is more efficient STRING or MOVE statment
Reply with quote

Hello

I have a scenerio where I have to concatenate two strings . I would like to know the advantages and disadvantages of using STRING statment over MOVE statment ,that requires me to put the start place and length of the string ?


Will the use of STRING statment hampers performace in any ways and is there any operator (like || in PL/I ) that can be used directly in here
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


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

PostPosted: Thu Sep 08, 2005 6:47 pm    Post subject: Re: which is more efficient STRING or MOVE statment
Reply with quote

Hi Gaurav,

Obviously it should be MOVE, more efficient, if it can do what you are trying to do with STRING. But STRING gives you some other features like ON OVERFLOW etc. whcih MOVE can't.

So it should depend on I/P string coming the way...

EXPERTS any comment.....?????

Regards,

Priyesh.
Back to top
View user's profile Send private message
michaelraj

New User


Joined: 01 Sep 2005
Posts: 43
Location: Bangalore

PostPosted: Thu Sep 08, 2005 6:53 pm    Post subject:
Reply with quote

Hi,

I think going for String statement would be more advantage than going for Move statement. As using String Statement we can concatenate some of the characters of a string only with using Delimiters. We can also know how many characters are concatenated, if we would likely to know. The main advantage is we can handle the situation, if there is an overflow in the destination variable.

Regards,
Mike.
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
This topic is locked: you cannot edit posts or make replies. How to move a long alphanumeric data ... lind sh COBOL Programming 8 Mon Dec 05, 2016 7:51 pm
No new posts Efficient sorting chandracdac DFSORT/ICETOOL 5 Sat Oct 22, 2016 3:23 am
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm


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