View previous topic :: View next topic
|
Author |
Message |
Madhu Sudhan Reddy.O
New User
Joined: 15 Aug 2006 Posts: 5
|
|
|
|
Can we use Move In Evaluate, If yes, Can anyone send the Syntax.
For Example
Evaluate x
When x1
move ---
when x2
move---
when x3
move ---
End evaluate
IS this Syntax Correct ? , If no Please let me know the correct Syntax
Waiting for early Replies.
Thanks |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Yes, you can use MOVE in Evaluate. |
|
Back to top |
|
|
vijay_bn11
New User
Joined: 11 Sep 2006 Posts: 3 Location: Bangalore
|
|
|
|
I am proving one example, this may help you to understand clearly that move statement in the Evaluate
EVALUATE SQLCODE OF SQLCA
WHEN 0
CONTINUE
WHEN OTHER
MOVE SQLCODE OF SQLCA TO WS-SQLCODE
END-EVALUATE.
|
|
Back to top |
|
|
vijay_bn11
New User
Joined: 11 Sep 2006 Posts: 3 Location: Bangalore
|
|
|
|
I am proving one example, this may help you to understand clearly the move statement in the Evaluate
EVALUATE SQLCODE OF SQLCA
WHEN 0
CONTINUE
WHEN OTHER
MOVE SQLCODE OF SQLCA TO WS-SQLCODE
END-EVALUATE. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Yes we can use move stmt in evaluate |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
Hi,
You can use what ever you want. If you have to do more than one or two
things, it's a better way to use a Perform an put all the commands in a
specific Section
Regards, UmeySan
Evaluate Field
When 1 Move...
Add...
Multiplay
When 2 Move...
Add...
Multiplay
End-Evaluate
Evaluate Field
When 1 Perform OtherSection-1
When 2 Perform OtherSection-2
When Other Continue
End-Evaluate |
|
Back to top |
|
|
shankarravi1984 Warnings : 1 New User
Joined: 15 Sep 2006 Posts: 9 Location: pune
|
|
|
|
Quote: |
hi this is ravi,
you can use move statement in evaluate
ex:
evaluate true
when(basic pay > 10000)
move 1000 to hra
when other
add 0 to basic pay
end-evaluate.
|
|
|
Back to top |
|
|
|