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 the LINKAGE SECTION used in COBOL?
System Testing for Mainframe Developers What is System Testing? integration testing ? what's the procedure ..
INREC AND OUTREC? HOW TO SPLIT 5K RECORDS TO DIFFERENT FILES IN A FILE IN COBOL? RESTART IN COBOL-DB2? ISOLATION LEVELS?
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?
How to traceback if I am getting SOC7 or SOC4 abend? List down the steps
What is the usage of comp fields in cobol?
how to convert the recors form vsam file to db2 table tru file aid
In which area will you utilize 88 level items in cobol?
How do you differentiate between cobol and cobol-ii?
Why occurs cannot be used in 01 level in COBOL?
What is the compute verb? How is it used?
Our issue is there seems to be a disconnect, or no link, between our SELECT statement and our SD. We had SELECT SORT-FILE and SELECT SORT-FILE ASSIGN TO SORTWRK. ASSIGN TO SORTWRK1 SORTWRK2 SORTWRK3 SORTWRK4. with SD SORT_FILE RECORD CONTAINS 7833 CHARACTERS. In either case, at run time, the system ignored our SORTWRK# DD statements and allocated 16 sort works with the SORTWK## naming convention. Any ideas why the system does not recognize the connection? We do not even need the SORTWRK DD statements. Thanks
What are the cobol coding sheets?
What is the utilization of copybook in cobol?
What is the difference between comp and comp-3 usage?