View previous topic :: View next topic
|
Author |
Message |
SUREZTBW Currently Banned New User
Joined: 10 May 2007 Posts: 1 Location: pune
|
|
|
|
Hi
Cobol program we initialized the value salary field, when iam doing arithmetic operation
I move the another value. Which value will take during arithmetic operation?
Ex;
02 salary pic 9(3) value 200
02 b pic 9(3) .
-
-
-
procedure division
move 300 to salary.
Compute c =salary + b |
|
Back to top |
|
|
rameshfoa
New User
Joined: 05 Apr 2007 Posts: 27 Location: chennai
|
|
|
|
the value after move assumed |
|
Back to top |
|
|
sandeep1dimri
New User
Joined: 30 Oct 2006 Posts: 76
|
|
|
|
C= 300 + B |
|
Back to top |
|
|
kgumraj
Active User
Joined: 01 May 2006 Posts: 151 Location: Hyderabad
|
|
|
|
Hi Suresh,
All the variables will be having the latest value just before that statement, regardless of the initial value. |
|
Back to top |
|
|
|