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 is static and dynamic call in cobol?
hw to create 3 dimensional array & hw to access it?
what are the isolation levels and where we use it in the db2 program
Can we use redefine clause in occurs clause?
what is the purpose of linkage section?
How to read records which is in sequential file in reverse order ? Exp. 1 2 3 4 5 . i want 5 4 3 2 1?please clear my doubt any one
how to remove leading spaces and zeroes in a cobol variable.is there any easy way to do it
wht is load module and object module ?
how can count the number of character in feild ?? suppose for instance i have a feild with value ' rajesh sarkar' then how can v count the number of characters whitout spaces...........
HOW WE WILL SORT THE ARRAY WHICH IS GOING TO USE FOR SEARCH ALL?
what are decleratives in cobol?
What is the difference between a binary search and a sequential search what are the pertinent cobol?