in a indexed file what is procedure for read the records
from 12 to 18. please give the code example
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / satish
it is dynamical acess.using start verb it is done
| Is This Answer Correct ? | 0 Yes | 0 No |
what are the diferences b/w sub-script and index?
How to covert given string into ASCII value in COBOL/MF COBOL
What type of Call you would use if you don;t want the control back to the calling program?
i have n records in one file and in this file there is some fields and i want to count that how many sharma in my file so plz give the coding that how we read sharma ?
how do you reference the rrds file formats from cobol programs
What is the difference between binary search and sequential search?
How can you display the SPOOL information ?
can we use the two 01 level in file discription ?
Why there is no questions in this column?
what is the minimum number of lines a Cobol program should have to successfully compile and run
should I use Go back in the main program ? Yes we can use Go back in main program as well.
what is linkcard in cobol?