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

how you read control card into array?

3 Answers   HCL,


What is COMP-1? COMP-2?

4 Answers   CitiGroup,


I have a file it contain 10 records.i got abend at 8th record because of soc7.how do you know that perticular record got abend?

3 Answers   IBM,


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

1 Answers  


how will you define vsam file in select clause?

3 Answers   Patni,


Have you used the sort in your project?for this type of questions any working on real time project give the eg. with real time scenario.

0 Answers   IBM,


if you give cylinder(1,1)how many cylinders it will be allocate?

3 Answers   Hewitt,


What is EIBCALEN? Why it is used?

9 Answers   ADP,


COMP-3 field occupy ?

8 Answers  


Explain call by context by comparing it to other calls.

1 Answers  


I have one column say 'X' defined as VARCHAR Can anyone tell me What are the different ways to update this column thru COBOL-DB2 program?

5 Answers  


What is the meaning of 'TALLING' verb in cobol?

5 Answers  


Categories