in a indexed file what is procedure for read the records
from 12 to 18. please give the code example
Answer Posted / 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 |
Post New Answer View All Answers
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
How can we find that module can be called – whether DYNAMICALLY or STATICALLY?
What is the difference between a binary search and a sequential search? What are the pertinent cobol commands?
What is rmode(any) ?
How you can characterize tables in cobol?
How do get the result of your program directly on your pc?
i need a small 3d program using inline and outline.
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
What are INPUT PROCEDURE and OUTPUT PROCEDURE?
What is the difference between Structured COBOL Programming and Object Oriented COBOL programming?
How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.
Are you comfortable in cobol or jcl?
How to know whether the module is dynamical or statistical?
Can we change the password using ALTER? anyone tried and changed?
Discuss about changing dataset name in proc.