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
 

 

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 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
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm


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