View previous topic :: View next topic
|
Author |
Message |
sivatechdrive
Active User
Joined: 17 Oct 2004 Posts: 191 Location: hyderabad
|
|
|
|
a = 7
1 . evaluate true
when a > 5
perform para1
when a < 10
perform para1
so the 2 when satisfy the conditions,but the evaluate exits after excuting 1st when,how can i make execute the 2nd when also
2. diff between call by address & call by reference
3. use of comp3 (other than declaration for decimal) |
|
Back to top |
|
|
jz1b0c
Active User
Joined: 25 Jan 2004 Posts: 160 Location: Toronto, Canada
|
|
|
|
a = 7
1 . evaluate true
when a > 5
perform para1
when a < 10
perform para1
so the 2 when satisfy the conditions,but the evaluate exits after excuting 1st when,how can i make execute the 2nd when also
Evaluate once the condition satisfied it exits the case structure.
if you want both to be execute , you need to change your conditions/logic
something like this
When a>5 and a<10 |
|
Back to top |
|
|
sharan112
New User
Joined: 21 Dec 2004 Posts: 2
|
|
|
|
Masade,
You are correct, but we have to use ALSO instead AND.
call by address & call by reference -diff
Bother are same. Hope u meant to ask call by value & call by reference.
Call by Value copies the paramter to another memory and change of parameter in called pgm will not effect the value of parm in calling pgm. But in call by ref. both the pgms work with the parm in same memory location hence the change in called pgm effected in calling pgm.
use of comp3.
For efficient storage purpose. |
|
Back to top |
|
|
denny
New User
Joined: 25 Apr 2005 Posts: 1 Location: pune
|
|
|
|
i also have the same opinion that in evaluate once the condition is satisfied we will come out of the evaluate statement. |
|
Back to top |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
Well, since you opened this up again, Denny I might as well pitch my 2 cents.
If you use the ALSO approach as suggested you'll never execute para1; you'll fall thru to the NSI. An entity can't be 2 different things at the same time.
If you code it this way:
Code: |
evaluate true
when a > 5
when a < 10
perform para1
end-evaluate
|
you'll execute para1 when a > 5 or when it's < 10. |
|
Back to top |
|
|
ashutosh719
New User
Joined: 06 Apr 2005 Posts: 12
|
|
|
|
for Comp/Comp-3..refer to the bbytes they use...idea is of storage. |
|
Back to top |
|
|
karthiksukumar
New User
Joined: 02 May 2005 Posts: 2
|
|
|
|
hai everybody
can any in tell me what is finacle. it is related to mainframe? |
|
Back to top |
|
|
|