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
what is search and searchall?what is the diffrence between them?give an best example?
how do you reference the ksds vsam file formats from cobol programs
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
Explain how you can characterize tables in cobol?
How can i load all the data from a file to Table (array) in cobol.How i manage the occurs clause with out reading the file.Any options avilable ? Please can any one help me it is urgent?
What type of SDLC u followed? Why?
) How do u handle errors in BMS macro?
Why would you use find and get rather than to obtain?
Name the divisions, which are available in a cobol program?
Discuss about changing dataset name in proc.
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
What are different data types in cobol?
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.
What is the difference between PIC 9.99 and 9v99 in COBOL?
What is comp-1 and comp-2?