EVALUATE ALSO
Moderators: dbzTHEdinosauer, Moderator Group
EVALUATE ALSO
Hi all,
can anyone tell me wat does ALSO stands for in EVALUATE statement
will it work like AND in IF
ex:
Evaluate A ALSO b
WHEN 9 also 8
display 'hi'
end-evaluate
is this similar to IF A = 9 AND B = 8
can anyone tell me wat does ALSO stands for in EVALUATE statement
will it work like AND in IF
ex:
Evaluate A ALSO b
WHEN 9 also 8
display 'hi'
end-evaluate
is this similar to IF A = 9 AND B = 8
Have a nice day
- Rupesh.KOthari
- Member
- Posts: 17
- Joined: Thu Feb 16, 2006 5:27 pm
HI,
Hope this helps
Regards
Rupesh
Yes you are right, ALSO is similar to AND.Hi all,
can anyone tell me wat does ALSO stands for in EVALUATE statement
will it work like AND in IF
ex:
Evaluate A ALSO b
WHEN 9 also 8
display 'hi'
end-evaluate
is this similar to IF A = 9 AND B = 8
Hope this helps
Regards
Rupesh
------------------------
Thanks & Regards
Rupesh
-----------------------
Sun Shines Everywhere
Thanks & Regards
Rupesh
-----------------------
Sun Shines Everywhere
ALSO
HI,
U ARE RIGHT,IT WORKS LIKE AND BUT THE DIFFERENCE IS IF THE FIRST CONDITION FAILS IT WON'T CHECK SECOND CONDITION
So unnessary checking of second condition is avoided,,so it minimise the time of execution
i.e.
A = 7
B = 8
Evaluate A ALSO b
WHEN 9 also 8
display 'hi'
end-evaluate
a value is not equal to 9 so it won't check b value
U ARE RIGHT,IT WORKS LIKE AND BUT THE DIFFERENCE IS IF THE FIRST CONDITION FAILS IT WON'T CHECK SECOND CONDITION
So unnessary checking of second condition is avoided,,so it minimise the time of execution
i.e.
A = 7
B = 8
Evaluate A ALSO b
WHEN 9 also 8
display 'hi'
end-evaluate
a value is not equal to 9 so it won't check b value
kvenkat_b4u,
When you use an AND condition it is must that you are checking for all the conditions to be true. So, what is the special about here about this? ALSO and AND are meant to be the same.
HTH.
When you use an AND condition it is must that you are checking for all the conditions to be true. So, what is the special about here about this? ALSO and AND are meant to be the same.
HTH.
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
- kvenkat_b4u@yahoo.com
- Member
- Posts: 2
- Joined: Sat Apr 22, 2006 3:07 pm
- Location: chennai
ALSO
hi Arrbee,
if Condition1 AND Condition2 then
even if the condition1 fails, Still it is going and checking the condition2!!!!!
if Condition ALSO Condition2 then
IF The condition1 fasil it won't check the condition2, i.e it simply ignore the codtition2!!!..What a difference
i think it's enough ,,,still u have a doubt continue the debate....
if Condition1 AND Condition2 then
even if the condition1 fails, Still it is going and checking the condition2!!!!!
if Condition ALSO Condition2 then
IF The condition1 fasil it won't check the condition2, i.e it simply ignore the codtition2!!!..What a difference
i think it's enough ,,,still u have a doubt continue the debate....
Love to learn ever..,
By,
venkat
By,
venkat
link.
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page