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

some doubts about binding


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
elayarajack

New User


Joined: 15 Feb 2004
Posts: 8

PostPosted: Sun Feb 22, 2004 11:48 am
Reply with quote

hi,
thanks for your timely help. can you give me answer to my folowing questions too


1.what are the differences between vasm and db2. why we r going for db2.

2.function of REBIND option

3.how to access even records(ie record 22, 24, ..... upto 40 from 20) in indexed organization and dynamic access mode using alternate indexes.


plse do clear these doubts.
Back to top
View user's profile Send private message
franclin

New User


Joined: 23 May 2003
Posts: 11
Location: Chennai, India

PostPosted: Sun Feb 22, 2004 8:28 pm
Reply with quote

Dear,

Quote:
1.what are the differences between vasm and db2. why we r going for db2.


VSAM means virtual storage access methods of storing your data permanantly in DASD.

DB2 is a relational database, which also stores data, but give you a high access control over it.

there is no relation b/w data in a VSAM file, but DB2 provides integirity and entity relationship among data.



Quote:
2.function of REBIND option


REBIND binds your DBRM again without disturbing your base program. You can prefer REBINDING whenever,

a) An INDEX is added to your table
b) RUNSTATS utility has been run

Always prefer rebinding, instead of bind, whenver any authorization changes have been made to the table, but not any SQL statements in your program.

Quote:
3.how to access even records(ie record 22, 24, ..... upto 40 from 20) in indexed organization and dynamic access mode using alternate indexes.


Begin with your START commend with indexed from 20NTH RECORD. Use READ NEXT commend twise. Display the second READ NEXT valued. It will give you all even records. Perform this loop 10 times.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts -419 SQL error when binding DB2 2
No new posts Doubts in MQ data Converstions Java & MQSeries 3
No new posts Doubts related to insertion of table ... COBOL Programming 1
No new posts difference between Static and Dynamic... Mainframe Interview Questions 7
No new posts Doubts regarding Merging JCL & VSAM 5
Search our Forums:

Back to Top