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


Please Help Members By Posting Answers For Below Questions

What is the usage of comp fields in cobol?

660


Explain the configuration section of a cobol program with examples of syntax.

659


What rules are followed by the search verb.

638


Define cobol?

863


How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

946






What is amode(24), amode(31), rmode(24) and rmode(any) (applicable to only mvsesa enterprise server) ?

676


i want to learn mainframe..any websites and material to learn from basic..? my mail id : rajeswaribe2010@gmail.com

1772


How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?

2098


what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.

8167


how to access the file from prodution from changeman tool and to submit a file to production

6686


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

2058


Have you used comp and comp-3 in your project? And how?

2008


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5693


can anybody post me about file-aid and changemen tools pls and give me reference if any mainframe guys are there

1907


How to remove the spaces at the end of each record in the output file of variable length, via cobol program?

676