Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
difference b/w Dynamic and Random access methods in COBOL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: difference b/w Dynamic and Random access methods in COBOL
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: 54
Location: Chennai

PostPosted: Wed Oct 26, 2005 2:09 pm    Post subject:
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: 413
Location: Colarado, US

PostPosted: Wed Nov 02, 2005 7:31 am    Post subject: Re: difference b/w Dynamic and Random access methods in COBO
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    Post subject:
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.

http://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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts User access certification In Mainfram... Virendra Shambharkar All Other Mainframe Topics 4 Tue Oct 03, 2017 12:32 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm
No new posts how to see when the last read access ... Mike 1304 DB2 1 Tue Sep 12, 2017 7:52 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us