View previous topic :: View next topic
|
Author |
Message |
umanaga
New User
Joined: 09 Apr 2007 Posts: 33 Location: India
|
|
|
|
Hi,
Is it possible to read sequential file in COBOL using a key. |
|
Back to top |
|
|
murmohk1
Senior Member
Joined: 29 Jun 2006 Posts: 1436 Location: Bangalore,India
|
|
|
|
Umanaga,
Quote: |
Is it possible to read sequential file in COBOL using a key. |
Random access - No. |
|
Back to top |
|
|
kbalajie
New User
Joined: 07 Apr 2006 Posts: 1
|
|
|
|
Hi,
A sequential file can be accessed only sequentially and it is organized sequentially. We cannot read it through a key.
If you want to do some operation for a particular row using the key value which you have assigned, then you have to read the file sequentially and use a "if" or "evaluate" to pick a particular row sequentially.
Again I am insisting there is no way you can read the sequential file using the key.
Thanks & Regards,
Balaji |
|
Back to top |
|
|
balajiofcrrcoe
New User
Joined: 07 Jul 2005 Posts: 41 Location: chennai
|
|
|
|
One suggestion...If the record count is less you can load the seq file into an array and use it as a table.. |
|
Back to top |
|
|
Max Payne
New User
Joined: 13 Dec 2007 Posts: 10 Location: Shanghai
|
|
|
|
Sequential File can only be accessed by sequential read. |
|
Back to top |
|
|
|