rakesh086 wrote:i want to fetch a specific row from a file. like 150th row only.
how i can go ahead with cobol.
The real question is, what kind of data set are you reading?
As Dr. Sorichetti indicates, a sequential data set must be read sequentially; reading record 150 involves reading and discarding records 1-149. A relative data set can have a specific record read from it directly. The question is meaningless for an indexed data set, as key value, not position, is significant.
Tell us the organization of the data set, and you might get a useful answer.
"You have sat too long for any good you have been doing lately ... Depart, I say; and let us have done with you. In the name of God, go!" -- what I say to a junior programmer at least once a day