Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Submit job from Cobol with input data abdulrafi COBOL Programming 4 Wed Feb 01, 2017 12:41 pm
No new posts Dynamic array request/response contai... Suja.Sai CICS 2 Tue Jan 24, 2017 11:37 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us