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

What are the different rules for performing sort operation?

757


How do you define a variable of comp-1 and comp-2?

701


What are 77 levels used for?

656


What do you understand by psb and acb?

661


Is it possible that the redefines clause has different picture clauses compared to the one it redefined?

672






What is an in line perform? When would you use it? Anything else you wish to say about it.

641


1.Is it possible to move the data from 99.99 to 99v99? 2.What is the CICS-vsam Compilation process? 3.In My GDG 5 generation will be there GDG3 got an abend what will happen? 4.In my GDG first generation is +1 And I want to add the new generation what will happen previous generation? 5.How can you give the PIC clause below conditions A). s9 (reddy), B). s9 (5) occurs 5 times? 6.How override the proc from a particular step? and what is symbolic and override Procs?

5372


I have program P1 which calls file F1 which has 100 records and following structure 001 .................. 002 .................. 003 .................. 098 .................... 099 ................... 100 .................... Now I want to read these files and write these records in file F2 in following manner. 001 ...... 051 ..... 002 ...... 052 ..... 003 ...... 053 ..... .......... ....... .......... ....... .......... ....... 048 ........ 098 ...... 049 .......... 099 ....... 050 .... 100 ......

10581


What is a scope terminator give example?

653


Differentiate cobol and cobol-ii. (Most of our programs are written in cobolii, so, it is good to know, how, this is different from cobol)?

624


Write the code to count the sum of n natural numbers.

697


Why is it necessary that file needs to be opened in I-O mode for REWRITE?

745


How to change size of Initial number of records to *NOMAX for ALL PF files from perticular library, how can I do that

2728


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?

1801


How can you get the ksds file records into your cobol program?

639