I have a sequential file of 100 records. How do I load the
records into a two dimensional array ?

Answer Posted / neilsh

It should be
01 xyz
05 pqr occurs 2 times indexed by i
07 abc occurs 50 times indexed by j
09 rec pic x(40).

so it would be like 50 occurance of rec and then 2 occurance
of abc

50 + 50 = two divisions

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to traceback if I am getting SOC7 or SOC4 abend? List down the steps

4950


) How do u handle errors in BMS macro?

1514


How you can characterize tables in cobol?

817


example for sub strings ? and refernce modifications whit output pls

1947


Mention the guidelines to write a structured cobol program?

704






How do u write test cases?

1717


What the difference is between continue and next sentence?

751


What are declaratives and what are their uses in cobol?

797


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

844


Why occurs cannot be used in 01 level in COBOL?

808


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

804


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3830


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

773


How you can read the file from bottom?

749


how do you reference the printer file formats from cobol programs

765