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 are the steps to sort in a cobol program?
what are difference organizations in cobol and access mode in cobol? can you expalin what organization means while declaring for ksds,esds,rrds?
i have two file one is ksds another one is esds i want store matching records in flat file how to you matching.
What is the difference between a binary search and a sequential search what are the pertinent cobol?
Hi All, how is sign is stored in S9(17) comp-3 variable. Answer with an Example will be of great help.
What are the cobol coding sheets?
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.
What is R-mode and A-mode?
in a indexed file what is procedure for read the records from 12 to 18. please give the code example
i want a program using by if, evaluate , string, unstring, perform, occurs?
How does IDMS communicate with CICS?
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