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
how do you reference the printer file formats from cobol programs
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.
Can you please let me know the centre name of INS certification in Kolkata.
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
Are you comfortable in cobol or jcl?
what happens if parmparameter passes zero bytes to the program
I have a File that has duplicate records. I need only those records that occur more than thrice.?
What is the difference between external and global variables in COBOL?
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.
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?
A table has two indexes defined. Which one will be used by the SEARCH?
What is the default value(s) for an initialize and what keyword allows for an override of the default?
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?
what is s000 u4087 error? please give the all error codes in cobol,jcl.
How arrays can be defined in COBOL?