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 |
whn do i get soc7 abend while moving alphanumeric to numeric or while moving numeric to aplhanumeric please reply ASAP?
What do you understand by psb and acb?
Give some examples of command terminators?
we can use set true for condition names.. similarly can we code set to false in cobol pgm? will it work?
what is soc7 abend?how u can trace it?
why we are using picture clause in the cobol programs?
What are the different ways to run a COBOL DB2 program using JCL?
how can u find out just by seeing wheater it is main program or sub program ? any two ways to identify reply soon ?
2)Where the Plan is located in CICS-DB2?
what is Pic 9v99 Indicates?
How can you add a particular field/coloumn in copybook?
How to read the 2nd last record of a VSAM file? (The file size is huge and we don't know the key)