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

what are the steps to sort in a cobol program?

2 Answers   Patni,


what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?

1 Answers   HCL,


i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.

2 Answers   Wipro,


What is the difference between a binary search and a sequential search what are the pertinent cobol?

0 Answers  


Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.

5 Answers   EDS,






What are the cobol coding sheets?

0 Answers  


Re: 01 NAME1 PIC X(13) VALUE "COBOL PROGRAMMING". 01 NAME2 PIC X(13). now I want to display the value of NAME1 in reverse order i.e value should be displayed as "GNIMMARGORP LOBOC" HOW can I do that ??? please let me know if any one knows it.

2 Answers   IBM,


What is R-mode and A-mode?

3 Answers   TCS,


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

2 Answers   L&T,


i want a program using by if, evaluate , string, unstring, perform, occurs?

1 Answers  


How does IDMS communicate with CICS?

1 Answers   Covansys, Satyam,


Which of the following files can be OPENed in all the 4 modes? The four modes are INPUT, I-O, OUTPUT and EXTEND. (a) INDEXED (b) RELATIVE (c) SEQUENTIAL (d) All of the above

7 Answers   TCS,


Categories