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
What is the difference between PIC 9.99 and 9v99 in COBOL?
What type of SDLC u followed? Why?
What is inspect in cobol ?
What is the difference between structured cobol programming and object alternativelyiented cobol programming?
what is difference bt COND, REGION & TIME parameters at JOB & EXEC. give an exp.
What are the different rules of SORT operation?
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What is the difference between perform … with test after and perform … with test before?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
how to move the records from file to array table. give with code example
How did the release of cobol/370 version 1.3 improve the performance of release 1.1?
I have a File that has duplicate records. I need only those records that occur more than thrice.?
i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?
Write the code implementing the perform … varying.