View previous topic :: View next topic
|
Author |
Message |
bobbys
New User
Joined: 13 Oct 2005 Posts: 2 Location: hyderabad
|
|
|
|
What is the difference between Random and Dynamic accessing methods in COBOL. |
|
Back to top |
|
|
rsshanmugam
New User
Joined: 08 Mar 2005 Posts: 62 Location: Basildon
|
|
|
|
random access mean you randomly locate the record using RBA for ESDS , RRN for RRDS and Primary key for KSDS and your search goes record by record.
dynamic access means you dynamically locate a record and from there you perform sequential operation. |
|
Back to top |
|
|
iknow
Active User
Joined: 22 Aug 2005 Posts: 411 Location: Colarado, US
|
|
|
|
hi bobbys
Hope this helps...
1)RANDOM.
Records can be randomly accessed in the program using the primary/alternate key of indexed file organization or relative record number of relative organization.100th record can directly be read after getting the address of the record from the INDEX part for INDEXED files.100th record can directly be read for RELATIVE files even without any index.
2)DYNAMIC.
It is mixed access mode where the file can be accessed in random as well as sequential mode in the program.
Example: Reading the details of all the employees between 1000-2000. First randomly access 1000th employee record, then read sequentially till 2000th employee record. START and READ NEXT commands are used for this purpose in the procedure division |
|
Back to top |
|
|
Sridevi_C
Active User
Joined: 22 Sep 2005 Posts: 104 Location: Concord, New Hampshire, USA.
|
|
Back to top |
|
|
|