wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kaarthik
Just to add to the already given answers,
Evaluate is mainly used to eliminate the use of Nested-if's
this is introduced as part of VS-COBOL 2 .
As for REC-FM,
While defining the file in COBOL,
Give RECORDING MODE IS F
In JCL, Give DCB=(RECFM = FB,LRECL=XX,BLKSIZE=xxx)
| Is This Answer Correct ? | 5 Yes | 0 No |
how you will define variables length in cobol.
Can we access the a[0] in the array ?
how to run sub programs using static and dynamic call ...
How to display the index.(displacement from an array)
in a indexed file what is procedure for read the records from 12 to 18. please give the code example
what is the difference between PA & PF keys?
What is "Call by content" and "call by reference"?
In an EVALUTE statement is the order of the WHEN clauses significant?
Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above
Describe the cobol database components?
What are the different forms of EVALUATE statement?
S9(5)V9(2) occupies how many bytes memory ?