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



in a indexed file what is procedure for read the records from 12 to 18. please give the code exampl..

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

in a indexed file what is procedure for read the records from 12 to 18. please give the code exampl..

Answer / satish

it is dynamical acess.using start verb it is done

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More COBOL Interview Questions

Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

0 Answers  


How to read a 100 record from a file through cobol?

2 Answers  


I have a sequential file. How do I access a record in this sequential file randomly in my program ?

8 Answers   CGI, Xansa,


in a indexed file what is procedure for read the records from 12 to 18. please give the code example

2 Answers   L&T,


how would find total records in files using seqientional

1 Answers   HSBC,






what are the utilities for load and unload the DB2 tables

1 Answers   L&T,


level number 77 is used to define a)group data b)elementary data c)redefine d)none

8 Answers   TCS,


What happens when we move a comp-3 field to an edited (say z (9). Zz-)?

0 Answers  


Can we move X(7) to S9(7) COMP?

1 Answers  


comp-3 field occupy?

5 Answers  


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.

5 Answers   TCS,


How to define a array dynamically.....

5 Answers   Fidelity,


Categories