wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?




Answers were Sorted based on User's Feedback



wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?..

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

wht is the use of evalute verb ? how do u declare recfm in cobol and jcl ?..

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

Post New Answer




More COBOL Interview Questions

how many divisions are there in cobol

3 Answers   ADP,


a pic s9(4) comp b pic s9(4) comp-3 c ???????????????? d ???????????????? move a to c add a+B giving d. what is ur declaration for c,d?

4 Answers  


if you code move high-values to variable,can you move it into numeric variable or alphanumeric variable?

1 Answers   Patni,


What is the difference between next sentence and continue in cobol programing language?

0 Answers  


can we use COPY statement in w-s section? how?

3 Answers  






Write a cobol program making use of the redefine clause.

0 Answers  


What compiler option would you use for dynamic linking?

2 Answers  


What is COMP-1? COMP-2?

3 Answers   CitiGroup,


wht r the advantages of 77 level number ?

8 Answers   TCS,


What will happen if we generate GDG +2 version instead of +1 version?

2 Answers   T systems,


Sending data is aplhabetic size 7 (value 3000), I wantated this value to be stored in database, which is defined as s9(7)v9(2)comp-3.

2 Answers  


how to display date in reverse order if the pic clause of the is numeric suppose date is 09032010 ==> need to print in 20100309 (pic clause is numeric)

6 Answers  






Categories