Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Difference between MOVE and "="

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
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    Post subject: Difference between MOVE and "="
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: 356
Location: New York

PostPosted: Thu Jun 26, 2008 3:40 pm    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Jun 27, 2008 3:44 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Move from Comp3 variable to Edited Va... sreekusr COBOL Programming 8 Thu Aug 10, 2017 4:20 pm
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts Include/omit with "ALL" pa... mgl DFSORT/ICETOOL 6 Wed Jun 14, 2017 2:31 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us