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 |
what is level 66 means??
In an EVALUTE statement is the order of the WHEN clauses significant?
how many bytes does s9(15) occupy in comp1 comp2 and comp3 ?
RENAME clause takes new SPACE in memory.TRUE or FALSE? a)TRUE 2)FALSE
Move Zeroes to I move 5 to j perform para1 varying I from 10 by -2 until I = 0 display j. para1. Add 5 to j. What’ll be the value after execution of display stmt. A) 35 B) 40 C) 30 D) 25 please explain how?
Why we need to use redefine clause when we can define the variable seperately... what is actual need....
What is an in line PERFORM? When would you use it? Anything else to say about it?
What is "Call by content" and "call by reference"?
what is meaning by design document? who can repared for this?
What is the linkage section?
There is a variable with value 19446. Requirement is to convert it to 194.46. I tried it by doing divide by 100 and my receiving field data type is 9(03)v99. But the output is 194. I am not getting the decimal value. Could anyone pls let me know how to get this done?
please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?