I have a sequential file. How do I access a record in this
sequential file randomly in my program ?

Answer Posted / guest

Harish ,

What is "KEY-FILE1" ?
Anyhow - you are still reading file sequentially ? arnn't
you ?

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program that uses move corresponding.

673


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

2336


What is the LINKAGE SECTION used in COBOL?

889


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?

2098


What is a SSRANGE and NOSSRANGE?

820






) How do u handle errors in BMS macro

1508


What is the difference between a binary search and a sequential search what are the pertinent cobol?

735


What is the Purpose of Pointer in the string?

643


Explain the configuration section of a cobol program with examples of syntax.

659


)If there are 10 steps in GDG, if I want to refer the step2 after step5 . what should I do?

1523


How do you reference the fixed block file formats from cobol programs

703


Name the sections present in data division.

701


Difference between array and sub-script ?

1164


Write down the divisions of cobol program?

671


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

996