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

Can we use Move In Evaluate


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Madhu Sudhan Reddy.O

New User


Joined: 15 Aug 2006
Posts: 5

PostPosted: Mon Sep 04, 2006 10:47 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


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

PostPosted: Mon Sep 04, 2006 11:13 pm
Reply with quote

Yes, you can use MOVE in Evaluate.
Back to top
View user's profile Send private message
vijay_bn11

New User


Joined: 11 Sep 2006
Posts: 3
Location: Bangalore

PostPosted: Mon Sep 11, 2006 2:08 pm
Reply with quote

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.

Quote:
Back to top
View user's profile Send private message
vijay_bn11

New User


Joined: 11 Sep 2006
Posts: 3
Location: Bangalore

PostPosted: Mon Sep 11, 2006 2:08 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Sep 11, 2006 2:10 pm
Reply with quote

Yes we can use move stmt in evaluate
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Wed Sep 13, 2006 4:15 pm
Reply with quote

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
View user's profile Send private message
shankarravi1984
Warnings : 1

New User


Joined: 15 Sep 2006
Posts: 9
Location: pune

PostPosted: Sat Sep 16, 2006 11:48 pm
Reply with quote

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.
Code:
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts Evaluate variable to execute a jcl step JCL & VSAM 3
No new posts How to move DB2 Installation HLQ DB2 4
No new posts How to move values from single dimens... COBOL Programming 1
Search our Forums:

Back to Top