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


Please Help Members By Posting Answers For Below Questions

how do you reference the printer file formats from cobol programs

669


Hi pls anybody tell me about " ANALYSIS DOCUMENT PREPARATION AND ESTIMATION OF TASK " (in real time project)."I want to update a sequential file in my project" for that purpose i need both structures i mean analysis document and estimation of task.

1703


Can you please let me know the centre name of INS certification in Kolkata.

1719


i have 10 names in an array and my name is one of them also array is not in sorted order i need to display my name using index how will i do this

1000


Are you comfortable in cobol or jcl?

646






what happens if parmparameter passes zero bytes to the program

1669


I have a File that has duplicate records. I need only those records that occur more than thrice.?

8670


What is the difference between external and global variables in COBOL?

817


if we display var1 then what will b displayed in below condition. 77 var1 pic s9(2) value -10. 77 var1 pic s9(2) value -11. " " " -12. " " " -13. -14 ... ... -19.

5697


I need to compare 3 variables(dates) and do some processing based on the earliest date. There could be more then 1 date record in any of the 3 fields. What is the best way to code this?

1809


A table has two indexes defined. Which one will be used by the SEARCH?

759


What is the default value(s) for an initialize and what keyword allows for an override of the default?

699


i was faced one question- i have value -00001234.56 Suppress the zeroes and the output should be -1234.56 But Not - 1234.56 spaces should not be available after suppressing the zeroes. logic in jcl and cobol?

897


what is s000 u4087 error? please give the all error codes in cobol,jcl.

17062


How arrays can be defined in COBOL?

669