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

Difference between MOVE and "="


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vishabus

New User


Joined: 25 Oct 2006
Posts: 24
Location: India

PostPosted: Thu Jun 26, 2008 1:50 pm
Reply with quote

Hi,

In easytrieve what is the difference between using "MOVE" and using "=" sign. We have a piece of code where in we are using "MOVE" statement to move a value to the RETURN-CODE.

MOVE 1 TO RETURN-CODE

The easytrieve instead of ending with return code of 1 is ending with a RC of 64. When I do the display of RETURN-CODE, the SYSPRINT shows me the following value:

RETURN-CODE = 247447488.

However when I use the assignment operator, i.e., RETURN-CODE = 1, things work out fine.

Then as part of testing I moved 1 to a test variable defined as 9 N. The value which I see in sysprint is
WS-TEST = 100000000

Can somebody explain what exactly MOVE does in easytrieve.

I tried looking through various topics and couldn't locate any topic which might help me in this.

Thanks a ton !!!
Back to top
View user's profile Send private message
ksk

Active User


Joined: 08 Jun 2006
Posts: 355
Location: New York

PostPosted: Thu Jun 26, 2008 3:40 pm
Reply with quote

Hi,

I have used MOVE statement in Ezetreive as used in COBOL. I used the following satatement in my Ezetreive program.

MOVE 'D' TO FLAG-IND

This statement moved D into FLAG-IND variable. Worked like COBOL MOVE statement.
Back to top
View user's profile Send private message
Rajesh Sampath

New User


Joined: 18 Jun 2008
Posts: 9
Location: Pune

PostPosted: Thu Jun 26, 2008 5:05 pm
Reply with quote

Hi vishabus

From my knowledge

Move statement is using to move the value to the variable from LHS(Left hand side) to RHS (Right hand side).

But (=) equal to statement is using to move the value to the variable from RHS(Right hand side) to LHS(Left hand side).

Its the Major Difference between both.

Please correct me, If im wrong..

With Regards

Rajesh Sampath
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jun 27, 2008 3:44 am
Reply with quote

Hello vishabus,

Which version of easytrieve is used on your system?
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 -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts PuTTY - "User is not a surrogate... IBM Tools 5
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Timestamp difference and its average ... DB2 11
No new posts Newbie Stuck on "Duplicate Datas... TSO/ISPF 5
No new posts Difference when accessing dataset in ... JCL & VSAM 7
Search our Forums:

Back to Top