in a indexed file what is procedure for read the records
from 12 to 18. please give the code example
Answer Posted / santhosh vayathuri
use fallowing code
file-control
organization is indexed.
access mode is dynamic
record key is eno
procedure division
move 12 to eno
perform readpara until fnd = yes
stop run.
readpara.
read file1
if eno = 18
move 'yes' to fnd
end-if.
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
When is inspect verb is used in cobol?
Can a Search can be done on a table with or without Index?
What is the usage of comp fields in cobol?
What are various search techniques in cobol? Explain.
What is the Purpose of POINTER Phrase in STRING command in COBOL?
In which area will you utilize 88 level items in cobol?
How to get the last record in vsam file in cluster? And how can you get the ksds file records into cobol program?
What kind of error is trapped by on size error option?
What is amode(31)
How you can characterize tables in cobol?
What is the difference between comp and comp-3 usage?
How arrays can be defined in COBOL?
what is difference between cobol and cobol/400
What is cobol?
explain sorting techniques in cobol program?