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 difference between a binary search and a sequential search what are the pertinent cobol?

702


How to get the last record in vsam file in cluster? And how can you get the ksds file records into your cobol program?

625


What is rmode(any) ?

659


What are the pertinent COBOL commands?

2603


please..could u give an example about USAGE IS POINTER ..and explain why and when we use it ?

1925






What is the difference between structured cobol programming and object alternativelyiented cobol?

720


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

1981


what happens if parmparameter passes zero bytes to the program

1636


What are the different rules for performing sort operation?

736


What is a report item?

712


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2688


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.

2028


Explain what you understand by passing by value.

662


What are the cobol coding sheets?

637


How can you get the ksds file records into your cobol program?

624