wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
Answer Posted / neo devan
Evaluate verb is one of conditional statement used in cobol.
It is used whenever there are many conditions to check, its
used instead of nested if statements.
The syntax : evaluate true
when name="Robert" display "Robert".
when name="Langdon" display "Langdon".
end evaluate.
evaluate fname also lname
when "Robert" also "Langdon"
display "Robert Langdon".
when "Leonardo" also "Da Vinci"
display "Leonardo Da Vinci".
end evaluate.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
When is inspect verb is used in cobol?
input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.
What is amode(31)
What is the default value(s) for an initialize? What keyword will allow for an override of the default?
Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?
how we sort two input files based on a common column and giving one o/p file please send me the coding logic?
) how do u code after getting data?
What is redefines clause in COBOL?
I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?
What is the use of intialize verb?
IF I mention stop run in CICS what happens?
what happens if parmparameter passes zero bytes to the program
For rewrite, why is it mandatory that file needs to be opened?
How you can characterize tables in cobol?
)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?