IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

difference b/w Dynamic and Random access methods in COBOL


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
bobbys

New User


Joined: 13 Oct 2005
Posts: 2
Location: hyderabad

PostPosted: Wed Oct 26, 2005 12:08 pm
Reply with quote

What is the difference between Random and Dynamic accessing methods in COBOL.
Back to top
View user's profile Send private message
rsshanmugam

New User


Joined: 08 Mar 2005
Posts: 62
Location: Basildon

PostPosted: Wed Oct 26, 2005 2:09 pm
Reply with quote

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
View user's profile Send private message
iknow

Active User


Joined: 22 Aug 2005
Posts: 411
Location: Colarado, US

PostPosted: Wed Nov 02, 2005 7:31 am
Reply with quote

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
View user's profile Send private message
Sridevi_C

Active User


Joined: 22 Sep 2005
Posts: 104
Location: Concord, New Hampshire, USA.

PostPosted: Thu Nov 03, 2005 5:32 am
Reply with quote

Hi bobby_bommaraju,
Welcome to our forum! Go through the forum rules. Manual is available in this website. Learn to use it. If you couldn't find the answer from the manual then post your query.Check this link.

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/IGYL1101/2.4.8.3?SHELF=&DT=19930312093006&CASE=
Regards,
Sridevi
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts How to access web services/website? Mainframe Interview Questions 4
Search our Forums:

Back to Top