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 |
Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning
How to read a 100 record from a file through cobol?
I have a sequential file. How do I access a record in this sequential file randomly in my program ?
in a indexed file what is procedure for read the records from 12 to 18. please give the code example
how would find total records in files using seqientional
what are the utilities for load and unload the DB2 tables
level number 77 is used to define a)group data b)elementary data c)redefine d)none
What happens when we move a comp-3 field to an edited (say z (9). Zz-)?
Can we move X(7) to S9(7) COMP?
comp-3 field occupy?
How to read records in reverse order in flat file? I know we can do it by reading all records into an array.... Then read records in reverse order by using subscript or index but can any body give me the exact code.
How to define a array dynamically.....